You can test your flow and its steps to ensure that your integration will work properly. With the flow testing feature, you can also view the data coming in from each step.
In this example, we will create an integration: "When a Subscriber is created in Mailchimp, create a Contact in HubSpot."
- Go to Flows from the top menu.
- Create a new flow.
- Add the Mailchimp trigger 'Subscriber Created.'
- Enter values for the fields.
- Refer to this article for adding the above step.
- Click Continue.
- You can select the audience to which your subscriber will be added.
- Click Test.
- You'll see a test interface within the step depending on the type of step you are testing. Since this is a simple trigger that notifies of a subscriber being created in Mailchimp, you will see the following message prompting you to create a subscriber on the Mailchimp.
- Go to your Mailchimp account and create a subscriber.
- You will see a success message on the flow builder screen once your subscriber is created and Integry receives a trigger from Mailchimp.
- Click on Trigger to expand the section and view the test results.
- Test results show that the subscriber was created with the details that you entered in Mailchimp account while creating the subscriber.
- Before testing any step, you can preview the data going into the step as input. This is the data that a step is getting from a parent step (or a linked step) to work with. This data is presented in a standard JSON response format, as shown below.
- Click Done.
- Search and select HubSpot in the child step.
- Add the 'Create Contact' action.
- Connect your account.
- Enter the values for the fields.
- Select a list to which you want to add the contact and click Continue.
- Click Test.
- You will receive a success message when a contact is created in HubSpot.
- Click on 'Test Result' to expand it and view test results.
- This is the input data from the parent step going into this step.
- To see the input data for a step, you need to test the parent step first
- Click on Request to view the request that was sent by Integry to HubSpot to create the contact.
- You can view the response received by Integry by clicking on Response.
- You can also view the object created in Integry as a result of the contact creation.
- The input data will provide you with the information this Action will use to create this same contact in HubSpot. All this attribute data you see in this input will be copied to the HubSpot’s contact created by this Action.
- For every step you test within a Flow, its output data is saved in a 'Data Tree.'
- You can see the data in the tree by opening the 'Fields' section from the right side menu of your Flow builder screen.
- This shows available generated data for all the steps in the flow and follows the hierarchy of your flow.
-
Each parent step has its own object (with the same index) in the tree, which you can expand and see the data for its test result.
- Expanding any of the above steps will display the result data if the step has been tested.
-
You can have multiple data trees in a flow.
- This provides the option of testing your flow with different sets of data.
- By default, every flow has a Default data tree.
- You can see which tree you have selected by clicking on the top-level drop-down.
-
To create a new data tree, click on the box of the drop-down and write a name for the new test tree you want to create.
- Creating a new test tree will make that tree as the selected one for your flow.
- The input data for all the steps will be cleared, and you can test any step again.
- You can switch between your data trees to use their respective test data.
- The Flow Builder supports several types of core as well as utility steps. Testing methods of each remaining step can be found in their respective help documentation.
Comments
0 comments
Please sign in to leave a comment.