Send value to a Thingworx service from another Thingworx service using .PostJSON
- April 27, 2017
- 1 reply
- 3658 views
I've been stuck for quite some time already trying to perform the action described in the title.

I tried to explain my process with this picture. I'm calling manually the "service 1", INPUT : NONE, OUTPUT: result (string) .
The result variable seems to be empty, and this is certainly the problem here.
The boolean 'serviceCalled' is set to true, so the request is calling 'service 2'.
The JSON content is set to '{}', so either 'service 2' receive nothing or it's receiving an empty json.
'service 2' as an INPUT: 'content' and an OUTPUT: 'result' (TEXT) returning undefined.
The thing is that I tried to send whatever I could think of into the "content: X" property of "service 1" but it's always returning nothing.
I don't think I can use another method because in the end I won't just change a thing's property in thingworx but I want to send 'service 1''s request to another device.
I linked the picture in case it prints to small on the forum.
I'll be waiting for your help,
Julien BENETHUILIERE

