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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! 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.

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

Announcements


Top Tags