Step 5: Map flow output to trigger reply

When the execution of the flow is complete, the output must be sent back to the trigger to send a reply to the REST request initiator. Hence, the flow output data must be mapped to the trigger reply. Then, it returns the result of the flow execution to the REST request initiator.

Mapping the flow output to the trigger reply

On the left pane, click the Map from Flow Outputs tab to configure the mapping of the trigger reply field. The Available data and Trigger reply panes are displayed. To see all the flow outputs available for the mapping, expand $flow. You can map the code and data trigger replies to the flow outputs.

    Procedure
  1. Drag code from Available data to the code in the Trigger reply pane. The $flow.code string appears in the code text editor, which means you have successfully mapped the code in Trigger reply to the code in Available data.
  2. Similarly, map the message field from Trigger reply with the message field from Available data.
  3. Click Save and close the trigger dialog. The trigger is now configured and activities can be added to this blank flow.