Execute Service
This action executes a ThingWorx service, and then returns the results of that service.
Services are functions that a Thing can perform. Each Thing can have one or more services. You can define services at the ThingShape, ThingTemplate, or Thing level.
A simple example of a service is a query written for a database Thing.
Using the Execute Service Action
To use this action in your workflow, you need to connect it to ThingWorx Flow. To connect to a flow, do the following:
1. Drag the Execute Service action under the ThingWorx connector to the canvas, place the pointer on the action, and then click or double-click the action. The Execute Service action window opens.
2. Edit the label name, if needed. By default, the label name is same as the action name.
3. To add a connection, refer to the section Adding a Connection in the ThingWorx connector topic. The default value is ThingWorx App Key.
* 
If you previously added a ThingWorx connection, select a connection from the list.
4. In the Entity Type field, select a ThingWorx entity type.
5. In the Entity field, select an appropriate entity.
6. In the Service field, select the service, and then enter the Parameters. The parameters are dynamically loaded based on the service selected.
7. Click Done.
Output Schema
This actions returns an output schema as shown in the figure that follows: