Return Result
Use the Return Result action to return the output of any executed action in the workflow to the synchronous ThingWorx service or webhook invoker, during workflow execution.
After the action whose output is mapped to the Return Result action executes, the Return Result action returns data to ThingWorx immediately and does not wait for workflow execution to complete. Thus, the Return Result action provides an output, irrespective of workflow failure.
If the Return Result action is present inside the Loop block, and the output of an action inside the loop block is mapped to the Return Result action, then the output passed to the Return Result action during the first loop iteration is returned and the output data for the rest of the loop iterations are ignored.
In any workflow, even if you use multiple Return Result actions, only the first Return Result action sets the result, while the rest of the Return Result actions in the workflow are ignored.
* 
For asynchronous webhooks or ThingWorx services, the action does not return any output.
Prerequisite
Set the webhook or ThingWorx service to be synchronous.
Steps
Complete the following steps to use the Return Result action in your workflow:
1. Click and drag the Return Result action under Developer Tools to the canvas, place the pointer on the action, and then click or double-click the action. The Return Result window opens.
2. Edit the Label, if needed. By default, the label name is the same as the action name.
3. In the Base Type list, select the correct ThingWorx base type to match the returned data.
4. In the Data field, map the output of any previous action in the workflow to return a value to ThingWorx or the webhook invoker during the execution of the workflow.
If you do not set this value, the action does not return any result to the webhook or ThingWorx service. The Return Result action never fails or stops workflow execution.
5. Click Done.
Was this helpful?