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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

QueryPropertyHistory service to filter values

svisveswaraiya
17-Peridot

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

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

View solution in original post

2 REPLIES 2

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

slangley
23-Emerald II
(To:posipova)

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

Top Tags