Skip to main content
Mar 8, 2019 11:20 AM UTC
Solved

QueryPropertyHistory service to filter values

Hi,

Is it possible to filter or sort values of QueryPropertyHistory like it should return only  >50 or <100 values? 

How can I achieve this?

 

Thanks,

Shalini V.

posipovaAnswer
Mar 8, 2019 7:00 PM UTC

You can use the query parameter in the service:

 

var result = me.QueryPropertyHistory({
oldestFirst: undefined /* BOOLEAN */,
maxItems: undefined /* NUMBER */,
endDate: undefined /* DATETIME */,
query: undefined /* QUERY */,
startDate: undefined /* DATETIME */
});

 

Using a json object in the query parameter. Details:

 

https://www.ptc.com/en/support/article?n=CS233682

2 replies

posipovaAnswer
Mar 8, 2019 7:00 PM UTC

You can use the query parameter in the service:

 

var result = me.QueryPropertyHistory({
oldestFirst: undefined /* BOOLEAN */,
maxItems: undefined /* NUMBER */,
endDate: undefined /* DATETIME */,
query: undefined /* QUERY */,
startDate: undefined /* DATETIME */
});

 

Using a json object in the query parameter. Details:

 

https://www.ptc.com/en/support/article?n=CS233682

Mar 14, 2019 2:55 PM UTC

Hi @svisveswaraiya_285988 

 

If the response posted by @posipova answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon