Skip to main content
1-Visitor
February 3, 2022
Solved

Problem with QueryNamedPropertyHistory with query

  • February 3, 2022
  • 1 reply
  • 1506 views

Hi All,

 

I have a problem with  QueryNamedPropertyHistory. I want to run the Query based on another properties value this property is logged but not persisted and on the same thingshape. When I run the query with a query not defined it returns the values but when I set the query to what I need it returns no values why is this? or could you please provide an example.

 

Carl985_0-1643916461840.png

this is my query

{ "filters": { "fieldName": "MachinePartNumber", "expression": "3351", "type": "Matches" } }

Carl985_1-1643916764763.png

Thanks in advance

Best answer by VladimirN

 Hi,

 

There was a similar question before - "Problem with service QueryNamedPropertyHistory": https://community.ptc.com/t5/ThingWorx-Developers/Problem-with-service-QueryNamedPropertyHistory/td-p/523974

1 reply

VladimirN24-Ruby IIIAnswer
24-Ruby III
February 3, 2022

 Hi,

 

There was a similar question before - "Problem with service QueryNamedPropertyHistory": https://community.ptc.com/t5/ThingWorx-Developers/Problem-with-service-QueryNamedPropertyHistory/td-p/523974

Carl9851-VisitorAuthor
1-Visitor
February 4, 2022

Thank you sorted now 

24-Ruby III
February 4, 2022

You're welcome.