Sync data TO another app from your app
Last updated
Last updated
In this tutorial, we will:
If you'd like, you can also create a flow that syncs data FROM another app to get started.
It will only take 5 minutes. Let's begin.
Click Create a Flow
Select a trigger for the block. In this example, we will select "Webhook" by Integry.
Select your app in the App field, paste a sample json of the object from your app that you will be sending to Integry. Lastly, give this json payload a name.
Add a step to perform an action in another app using the user's auth. In this example, we will select "Add Subscriber" in Mailchimp.
Rename the flow and click Save.
That's it! The flow is ready for you to try. For that, head back to the Flows list.
Click Embed.
Click Generate Code.
Open the downloaded HTML file in the browser.
You'll see the flow you created. In this example, that's "Sync new contacts to Mailchimp". Click Setup and enable.
Login to Mailchimp.
Configure Mailchimp.
Select the audience in which the subscriber will be created.
Map the email field.
Select the default subscriber status.
Map any other fields and click Next.
Before we click Save to complete the setup, we need to do one small thing so we can access the URL we'll have to call to run this integration. Assuming you're using Chrome... click View > Developer > Javascript Console.
Now, click Save to initialize the integration.
Almost there! The integration is now live and ready to be triggered.
Right-click the URL shown in the console, and click Copy link address.
Open Postman.
Set the method to POST.
Paste this URL.
Go to Body, select 'raw', click Text and switch that to JSON.
In the Integry app, go to Account Settings > Objects.
Select the object you selected while creating the flow. In this example, we selected "Contact".
Copy the JSON payload.
Paste the payload in the body in Postman.
If you want, you can modify any of the values.
Click Send to run it.
We're done! Head over to Mailchimp to see the new subscriber you just created.
Recap: You created a new flow, set up an integration of that flow, triggered it, and it ran.
You can now see how the run executed by clicking the count of users against this flow (in the flows list) and drilling down to runs.
Next, let's Embed the Flows widget so your users can set up integrations from within your app.