Connecting to Salesforce (Advanced)
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.
Video
Tutorial
Integrating Salesforce to your application
Integrations are how external systems connect within Airkit. Youβll start configuring the integration in the Console and then continue in the Studio.
In the Console
- 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.
In the Studio
- 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.
Adding a Data Operation to connect to Salesforce
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
andcompany
.
- You can do a quick test within this Data Operation by clicking on Run:
The record should be created in Salesforce.
Previewing the application
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.
Verifying Contact was created in Salesforce
- 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.
Updated over 2 years ago
To learn how to publish your application, see Publishing Your Application. To review concepts introduced throughout the process of creating a Contact Form, see Appendix.