Skip to main content
1-Visitor
March 8, 2019
Solved

QueryPropertyHistory service to filter values

  • March 8, 2019
  • 1 reply
  • 1225 views

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.

Best answer by posipova

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

1 reply

posipova20-TurquoiseAnswer
20-Turquoise
March 8, 2019

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

Community Manager
March 14, 2019

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