Skip to main content
Jamal Ashraf
16-Pearl
Feb 21, 2024 9:21 AM UTC
Solved

Use Thingworx Service as REST API

I want to use the thingworx service and send the data to Power Automate but now limitation is i am unable to make GET request from Thingworx platform. Is it possible that thingworx Api can work as Get API so that i can get the data in Power Automate. Can anyone please spread light on this topic. I would like to get the data with GET HTTP method and NOT POST METHOD.

nmutterAnswer
17-Peridot
Feb 21, 2024 9:39 AM UTC

From ThingWorx you want to send a GET/POST request to Power Automate?

You can use ContentLoaderFunctions:

- https://www.ptc.com/en/support/article/CS228550

- https://community.ptc.com/t5/IoT-Tips/ContentLoaderFunctions-in-ThingWorx/ta-p/820230

 

Or do you want send data from Power Automate to ThingWorx?

11 replies

nmutter17-PeridotAnswer
17-Peridot
Feb 21, 2024 9:39 AM UTC

From ThingWorx you want to send a GET/POST request to Power Automate?

You can use ContentLoaderFunctions:

- https://www.ptc.com/en/support/article/CS228550

- https://community.ptc.com/t5/IoT-Tips/ContentLoaderFunctions-in-ThingWorx/ta-p/820230

 

Or do you want send data from Power Automate to ThingWorx?

Translate
Jamal Ashraf
16-Pearl
Feb 21, 2024 9:46 AM UTC

i would like to send the data from Thingworx as a REST API but not with post request. I want to send the data with GetHTTP Request. do you have any idea about it? Can you please let me know?

Translate
17-Peridot
Feb 21, 2024 9:57 AM UTC

ContentLoaderFunctions has these GET requests

GetJSON, GetText, GetXML

 

Sending data via get you have to do by adding the data via query string (?data=myData). Like http://<host>/?data=myData

The format of how you send it will depend on the target system - how it expects the data.

Translate