Controlled distribution of data flow

Controlled distribution of data flowalt text

Step by step instructions:

  1. Create a new scenario.
  2. Add the following modules to your scenario:
  • HTTP Request — to receive the data from the webhook.
  • JSON Parse — to parse the data received from the webhook.
  • Module Bundler — to bundle the records.
  • Increment — to generate the IDs of the records.
  • Filter — to filter the records.
  • Split — to split the records.
  • Connector — to connect the scenario to the destination where you want to save the data.
  1. Connect all of the modules according to the following scheme:
  1. Configure the HTTP Request module. Enter the URL of the webhook in the URL field. In the Method field, select the POST option.
  2. Configure the JSON Parse module. In the JSON field, enter the following:
{
"records": "{{$json.records}}"
}
  1. Configure the Module Bundler module. In the Number of items in a batch field, enter the number of records that you want to bundle.
  2. Configure the Increment module. In the Number field, enter the number by which you want to increment the IDs of the records.
  3. Configure the Filter module. In the Condition field, enter the following:
{{$bundle.0.id}} > {{$bundle.1.id}}
  1. Configure the Split module. In the Condition field, enter the following:
{{$bundle.0.id}} != {{$bundle.1.id}}
  1. Configure the Connector module. Enter the credentials of the destination where you want to save the data.

Example of use case:

You have a webhook that sends data about the user’s activity on your website. You want to save this data to your CRM system, but you want to control the distribution of the data flows. Instead of the numbers generated by the Increment function module, you can use the IDs of the records.

Try out this ready to use workflow template:

Controlled distribution of data flow

Find more templates on our website:

Business workflow templates

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Greg Vonf @ Business Automated

Greg Vonf @ Business Automated

Greg is the founder of Business Automated, an agency helping small businesses streamline and simplify their processes. For more visit www.business-automated.com