Connecting to Salesforce (Advanced)
Last updated
Last updated
You've created a Contact form that both collects and stores information from users. Now, let's create an integration that sends that information to Salesforce.
📘 This part of the tutorial requires a Salesforce account or developer instance in order to create a Salesforce integration in Airkit. To sign up for a salesforce developer account, go to https://developer.salesforce.com/signup.
[block:embed] { "html": "<iframe class="embedly-embed" src="//cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FIXukLwZCA3k%3Ffeature%3Doembed&display_name=YouTube&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DIXukLwZCA3k&image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FIXukLwZCA3k%2Fhqdefault.jpg&key=f2aa6fc3595946d0afc3d76cbbd25dc3&type=text%2Fhtml&schema=youtube" width="854" height="480" scrolling="no" title="YouTube embed" frameborder="0" allow="autoplay; fullscreen" allowfullscreen="true">", "url": "https://www.youtube.com/watch?v=IXukLwZCA3k", "title": "Creating your first integration (Salesforce)", "favicon": "https://www.youtube.com/s/desktop/7bec1ddb/img/favicon.ico", "image": "https://i.ytimg.com/vi/IXukLwZCA3k/hqdefault.jpg", "provider": "youtube.com", "href": "https://www.youtube.com/watch?v=IXukLwZCA3k" } [/block]
Integrations are how external systems connect within Airkit. You’ll start configuring the integration in the Console and then continue in the Studio.
Go to Integrations. Click on Create new, type a name and select the Salesforce integration. Then click on Create.
If you are not logged into your Salesforce instance, a popup will display asking you to enter your credentials.
📘 Salesforce Login URL For the Salesforce Login URL, Salesforce Dev and Production environments typically use login.salesforce.com while Salesforce Sandbox environments typically use test.salesforce.com.
Access your Contact Form app and go to Settings. This is where you connect your resources to Airkit. Scroll down to Integrations and click on New. Then select Salesforce from the Adapters.
In Connected Account, select from the dropdown the one you have just created in the Console.
Save the app.
This section will go over the Salesforce Data Operation.
First, go to Connections Builder.
In Connections Builder, go to the Data Flow that was added when the Contact Form was built in the previous section. Add the Salesforce Data Operation to it by clicking on the '+' icon. Search for Salesforce and select it.
In Datasource, select "Salesforce", which is the name of the integration previously created, and under Operation, select the type of action you want to perform. In this case, it’s going to be the creation of a new record. In Object Type, select Contact.
The Object Body displays the properties you need to create a Contact Object. In this case it requires a Last Name, so the name
Variable in your Contact Form needs to be passed here. Add the other fields one by one: phone
, email
and company
.
You can do a quick test within this Data Operation by clicking on Run:
The record should be created in Salesforce.
Once the app is all set, it can be tested in the App Preview.
Click on Preview at the right-hand corner of the Studio, which will open a new tab.
Click on the globe icon, which allows the app to be launched from the start.
Complete the fields and click on “Submit”.
This application is now ready to be published.
Sign into your Salesforce account or developer instance, click on the App Launcher icon and select Sales Console.
Once in the Sales Console, click on the arrow icon and select Contacts.
Identify the user that was created through the Airkit application and check the information under Details.