HOW TO: Pass data from one flow to another

In some instances, you may want to pass data from one flow to another. This could be useful because you

  • want to utilize a single flow for creating/updating customer records within your ERP and to do so you have order flows that all call to a single customer create flow
  • want page size controls over NetSuite realtime exports
  • want to utilize a single flow to manage error messages to Slack
  • want to work with a file you created within a file provider import step and to do so you use a postAggregate function to send the created file details to another flow

NOTE: You can also do this via script by calling the exports.run(options) JSRT function.

In order to do this, you need admin privileges, an IO api token, or to already have a connection made to IO and that connection is registered to the integration tile you have access to. 

To start off:

  1. Go to the resources tab on the left hand side
  2. Click connections
  3. Click add connection
  4. Follow the steps in this article to create a connection to integrator.io

Next, you need to create flow #2

  1. Go to the integration tile you want this to live in
  2. Create flow #2
  3. Add a source
  4. Select integrator.io as the source
  5. Choose "Listen for real-time data from source application"
  6. Click Next
  7. Name the export
  8. Click the plus sign next to public URL and copy the generated value. For example, "/v1/exports/654XXXXXXX7ff2f/data".
  9. Add sample data. This could just be {} to start.
  10. Set your page size if needed.
  11. Add a destination
  12. Turn the flow on

Next, create flow #1

  1. Add whatever source system you need
  2. Add a new destination
  3. Select integrator.io as the destination
  4. Choose "Import records into destination application"
  5. Choose the connection you setup in the beginning
  6. Name the import
  7. Switch your form view to REST API
  8. Choose POST as HTTP method
  9. In the relative URI field, paste the copied value from step 8 above.
  10. Save and close.
  11. You can add a mapping if you want or if you specify nothing, the raw record data will pass to flow #2.
  12. Turn the flow on and test it out

 

1

Comments

2 comments
Date Votes

Please sign in to leave a comment.

 

Didn't find what you were looking for?

New post