A two-way sync refers to the process of syncing data from a third-party app to your app and vice versa in one flow. To achieve a two-way sync, the user needs to map fields in both directions(forward and reverse).
We will create a flow, "when an attendee is added into an event in vFairs, create a contact in HubSpot and vice versa."
- Log in to your account on Integry and create a new flow.
- Select vFairs as the source app.
- Add the trigger "Attendee Created."
- Click "Add My Account."
- Enter your API Key in the pop-up window and click Proceed. You can find your API Key in your account.
- Configure vFairs and click Continue.
- Click Test.
- Create a contact in your vFairs account and press Start.
- Your test will be successful when Integry receives a trigger from vFairs. Click Done.
- Click on the three-dots menu on the right corner of trigger and then "Add Child Step."
- Search and select HubSpot as the destination app.
- Select the "Create Contact" action.
- Connect your HubSpot account.
- Enter the email address of contact, first name, last name, additional attributes and the list to which you want to add the contact. Click Continue.
- Click Test.
- You will see a success message if the contact is created successfully in HubSpot. Click Done.
- Click on the three-dots menu on the far right corner of the trigger step and then "Add Step."
- Add "Contact Created" trigger in HubSpot following the steps 2 and 3.
- You don't need to connect your HubSpot account again as it is already connected.
- Select the list in which you want to create the contact and click Continue.
- Click Test.
- Create a contact in your HubSpot account.
- Your test will be successful when Integry receives a trigger from HubSpot. Click Done.
- Search and select "JSON" in the child step.
- Select the "Reverse map" action. This is where you'll configure the mapping of fields. You can specify the JSON of of the fields of HubSpot, the specifier to prepend to the JSON key, and the value(s) to be removed from the data structure.
- Enter the JSON of the fields of HubSpot.
- Click on the '+' sign, 'Create Contact', 'In', and "Add to Field", if you want to add a dynamic tag to the JSON field.
- Enter the specifier that you want to prepend JSON key.
- Enter the specific value or set of values that you want to remove from the data structure.
- The values represent the elements in the data structure.
- The values represent the elements in the data structure.
- Click Test.
- Add a "Create Attendee" action in vFairs following steps 10 to 12.
- You don't need to connect your vFairs account as it is already connected.
- Add the output of the Reverse map step so that all the fields of the contact are automatically mapped in opposite direction. The user won't have to map HubSpot fields to vFairs while setting up the integration. Click Continue.
- Click Test.
- You will receive a success message when an attendee gets added in vFairs.
- Turn on the "Loop Prevention" toggle from the Flow Behavior settings on the right side of the Flow Builder screen to enable a two-way sync.
- Save and publish your flow.
Comments
0 comments
Please sign in to leave a comment.