How to send large data to a workflow
You can pass large data to workflow via Webhooks. Let us understand how to do this with the help of an example. Let’s say you wish to fetch a large set of data in body of an email and send it to a recipient via ‘Gmail: Send an Email’ action.
Step 1 - Use Gmail Action
To achieve this, Add ‘Gmail: Send an Email’ action to Built.io Flow canvas, and connect it to ‘Start’ and ‘Stop’ to create a workflow. Configure the action, and fill up all the required fields. In the ‘Body’ field, enter {{$request}}. This ensures that the data you pass in the Webhook URL will be fetched in the body of the email. Then, click on ‘Next’, test the action, and click on 'Done'.
Step 2 - Enable webhook
Now, configure the ‘Start’ icon and select 'Webhook' from the list of trigger services that appear. Toggle the webhook button on, and select the method by which you wish to secure the webhook. Click on 'Next', test the trigger, and click on 'Done'.
Step 3 - Send data to webhook URL
The given Webhook URL can be used with any REST API client (such as Postman) to post data.
In Postman, select the HTTP request as ‘POST’, and enter the Webhook URL in the given field.Under headers, put ‘ContentType’ as ‘application/json’. In the body field, select ‘raw’ and enter the data that you want to pass in JSON format. Once you are done with this, click on ‘Send’ located on the top right corner of the page.
In Postman, select the HTTP request as ‘POST’, and enter the Webhook URL in the given field. Under headers, put ‘ContentType’ as ‘application/json’. In the body field, select ‘raw’ and enter the data that you want to pass in JSON format. Once you are done with this, click on ‘Send’ located on the top right corner of the page.