cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

QueryPropertyHistory service to filter values

SOLVED
Highlighted

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.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: QueryPropertyHistory service to filter values

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 2

Re: QueryPropertyHistory service to filter values

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

Re: QueryPropertyHistory service to filter values

Hi @svisveswaraiya- 

 

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