How to push Activity to any CRM from Your App
When your application captures or generates activity that your users want to see in their CRM, your app should send it there. This guide explains how to do it.

Flow

We will use a flow that consists of two nodes:
  1. 1.
    API Trigger
  2. 2.
    Create Data Record
In real-world use cases you may want to use App Event to launch this flow. Read more on how to do it in How to Trigger an Integration Flow when an Event happens in Your App.

API Trigger

Start with adding API Trigger to your flow:
This node will provide input for the flow. Let's configure it with some Activity fields:
We will use this data in the next step.

Create Data Record

Next, connect a "Create Data Record" node to the trigger and select "Activities" as Data Source:
Then, let's fill a few basic fields using data provided by the Activity (API Trigger) node:
For Contact we will do something more interesting. We will find a Contact using email available in our data. First, pick "Select Dynamically Using Variables" option in for Contact Id field:
Then, find contact by email:
And finally, click "Create New" if nothing found and fill the contact fields to be created:

Create a Connection

Before you run the flow, you will need to create a Connection to one of the Integrations. You can do it on the "Test Flow" page:
Simply click one of the "Connect" buttons and follow the instructions.

Run The Flow

To run the flow, simply make this API request:
post
https://engine-api.integration.app
/integrations/<integrationKey>/<flowKey>/run
Run all instances of the flow you've just created.
Use the key of the integration you connected (i.e. salesforce and a key of the flow you've created). You should use your Test User access token.
When you make the request, you should see the flow run on the "Activity Log" page and see the activity created in your CRM.

Embedding in Your App

To embed this integration into your app, follow this manual: <ToDo, reach out to [email protected] meanwhile>
Copy link
Outline
Flow
API Trigger
Create Data Record
Create a Connection
Run The Flow
post
Run all instances of the flow you've just created.
Embedding in Your App