Storage allows you to store and get data entries from our data store.
We will create a flow: "When a subscriber is created or updated in Mailchimp, create or update a contact in HubSpot respectively."
- Go to the Flows tab from the top menu.
- Create a new flow.
- Add Mailchimp trigger "Subscriber Created."
- Connect your account.
- Select the audience where the subscriber will be created.
- Click Test.
- You will receive a success message if Integry receives a trigger from Mailchimp. Click Done.
- Search and select HubSpot.
- Add action "Create Contact."
- Connect your account.
- Add the email, first name, last name and additional attributes of the contact you want to create.
- Add the List to which you want to add the contact.
- Click Test.
- You will receive a success message when a contact gets created in HubSpot. Click Done.
- Click on the three-dots menu in the far right corner of the HubSpot action step and click "Add Step."
- Search and select "Storage."
- Add the action "Set Value."
- This sets the value in the storage to be retrieved later by the key.
- A unique key-value pair for the object is created in Integry’s storage.
- Enter Namespace for separating key-value pairs.
- You can save the same key in different namespaces in an integration with different values.
- Enter the 'Key' name by adding a tag of 'id' from Mailchimp.
- Click on the '+' sign on the far right of the Key field, click Subscriber Created, Obj, Contact_v1, and then id. Click on "Add to Field" to add the contact id as a dynamic tag.
- Click on the '+' sign on the far right of the Key field, click Subscriber Created, Obj, Contact_v1, and then id. Click on "Add to Field" to add the contact id as a dynamic tag.
- Enter the key 'Value' by adding a tag of 'id' from HubSpot.
- Click on the '+' sign on the far right of the Value field, click Create Contact, Obj, Contact_v1, and then id. Click on "Add to Field" to add the contact id as a dynamic tag.
- Providing 'Key' and 'Value' will store this entry in the storage app as a key-value pair in our data store.
- Specify if the key name is case insensitive.
- It takes the input TRUE or FALSE.
- Specify if the key value is case insensitive.
- It takes the input TRUE or FALSE.
- Click Continue.
- Click Test.
- You will see a success message when the key value has been stored in Integry's storage. Click Done.
- Click on the three-dots menu in the far right corner of the trigger step and then click "Add Step."
- Follow steps 3-5 to add Mailchimp trigger "Subscriber Updated."
- Test the step.
- You will receive a success message when a Subscriber Updated trigger is received by Integry.
- Expand Test Results to view the updated contact.
- Follow steps 16-18 to add the 'Get value' action in the child step.
- This action retrieves the data stored in ‘value’ against any given ‘key’ or vice versa.
- The opposite is useful in two-way sync cases.
- If you update a contact in Mailchimp, the Get Value action will fetch Mailchimp's updated subscriber's record from Integry's data store and then find the corresponding contact in HubSpot so that the change can reflect there as well.
- Provide the key that was previously stored for the subscriber.
- Click on the '+' sign on the far right of the Key field, click Subscriber Created, Obj, Contact_v1, and then id. Click on "Add to Field" to add the contact id as a dynamic tag.
- Click on the '+' sign on the far right of the Key field, click Subscriber Created, Obj, Contact_v1, and then id. Click on "Add to Field" to add the contact id as a dynamic tag.
- Click Continue.
- Click Test.
- You will receive a success message when the HubSpot contact's data stored in ‘value’ against Mailchimp 'id' key is retrieved.
- Click Done.
- Click on the three-dots menu on the right of the Get Value Storage step and then click "Add Step."
- Add a HubSpot "Update Contact" action following steps 8-10.
- Enter or select the contact you want to update.
- Click on the '+' sign in the right corner of the 'Contact' field, then click on 'Get Value', then 'Out' and then add the tag 'value'. Click Continue.
- Click on the '+' sign in the right corner of the 'Contact' field, then click on 'Get Value', then 'Out' and then add the tag 'value'. Click Continue.
- Click Test.
- You will receive a success message when the HubSpot contact retrieved by the value is updated.
- Expanding the Test Result shows that the same contact that was updated in Mailchimp has been updated in HubSpot.
Comments
0 comments
Please sign in to leave a comment.