Skip to main content
16-Pearl
February 21, 2024
Solved

Use Thingworx Service as REST API

  • February 21, 2024
  • 1 reply
  • 3775 views

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.

Best answer by nmutter

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?

1 reply

nmutter16-PearlAnswer
16-Pearl
February 21, 2024

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?

MA873117416-PearlAuthor
16-Pearl
February 21, 2024

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?

16-Pearl
February 21, 2024

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.