Artisan SVG > Trigger Event Reply (trigger-reply) (upload-box-4)
Artisan SVG > Trigger Event Reply (trigger-reply) (upload-box-4)

Trigger Event Reply
1.1

Signal a trigger to finish and process reply data using the Trigger Event Reply connector

Overview
Copy

The Trigger Event Reply can be used when a reply is needed for your workflow trigger. It is used to signal to the trigger that it should finish what it is doing, stop waiting and process the reply data sent to it from the Trigger Event Reply.

This connector should be used in conjunction with the Webhook Trigger's 'Await workflow and respond' operation.

An example of when you might want to do this is, after taking several steps to process the data received via the webhook trigger, you may wish to respond with a 200 status and a "Successfully Recorded" message in the body.

Or, after making an unsuccessful boolean check for a user or valid url, you may wish to respond with a 404 'not found' message.

It is also possible to use the Trigger Event Reply to act as a redirect, by using a 301 Status and adding a Location URL to the headers section of the response.

Important note on using the Webhook Trigger
Copy

When using the Webhook Trigger in conjunction with the Trigger Event Reply connector, you must select the Await workflow and respond operation, in order to activate the settings in the Trigger Event Reply connector:

Response size limit
Copy

There is a limit of 1MB for the total response size

If the combined size of the 'status', 'body and 'header' in a trigger event reply step is larger than 1MB then the request will fail with the following message:

{"message": "Unfortunately, we encountered an internal error. Please contact us if the problem persists. Error ID: 81a6941aae"}

This will result in several retries with an eventual 504 error as the retries will take longer than 5 minutes.

Respond with 200 status
Copy

Respond with 400 status
Copy

After making a boolean check of some kind - for e.g. a user or valid url, you could set a Trigger Event reply on the false path of the boolean:

and use it to send a 404 accompanied with a body message that e.g. the user was not found:

Set a 302 Redirect
Copy

You can use Trigger Event Reply to setup a redirect using a 302 status and setting the Location in the Headers section:

Note that you must click on 'Advanced Settings' to make the Headers option visible.