Skip to main content
1-Visitor
June 21, 2022
Question

How to pass payload in Postman POST request for executing QueryImplementingThings service in TWX 8.5

  • June 21, 2022
  • 1 reply
  • 1543 views

We have to apply query on LastConnection Datetime Property via postman.

 

Please share the snippet.

 

Thanks in advance.

1 reply

22-Sapphire I
June 21, 2022

lastConnection is a property on the 'remote' thing, you could get this with either a 'Get' at <Server>:port/Thingworx/Things/<Name of Thing>/Properties/lastConnection

Or a 'Post' and query something like GetPropertyValues

First method would be simpler if all you needed was the value of the one property.

First method would require Visibility of the Thing and Runtime Property Read

Second method would require Visibility of the Thing and Runtime Service Execute of the service you will use and Runtime Property Read

RK_07051-VisitorAuthor
1-Visitor
June 22, 2022

@PaiChung 

The service we need to call is of ThingTemplate and not from Things, thatswhy we are running this service QueryImplementingThings to fetch all the things implementing that template via POST request.

 

Could you please help on that json paylod for POST request.

22-Sapphire I
June 23, 2022

Although it may be a large payload of information coming back, you could just run Query/GetImplementingThingsWithData and then pull the lastConnection from each entity.