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

  1. Go to Integrations. Click on Create Connected Account, 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

  1. 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.

  1. In Connected Account, select from the dropdown the one you have just created in the Console.

  1. Save the app.

Adding a Data Operation to connect to Salesforce

This section will go over the Salesforce Data Operation.

  1. First, go to Connections Builder.

  2. 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.

11.png

  1. 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.

  1. 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.

  1. You can do a quick test within this Data Operation by clicking on Run:

14.png

The record should be created in Salesforce.

Previewing the application

Once the app is all set, it can be tested in the App Preview.

  1. Click on Preview at the right-hand corner of the Studio, which will open a new tab.

28.png

  1. Click on the globe icon, which allows the app to be launched from the start.

29.png

  1. Complete the fields and click on “Submit”.

30.png

This application is now ready to be published.

Verifying Contact was created in Salesforce

  1. Sign into your Salesforce account or developer instance, click on the App Launcher icon and select Sales Console.

32.png

  1. Once in the Sales Console, click on the arrow icon and select Contacts.

33.png

  1. Identify the user that was created through the Airkit application and check the information under Details.

35.png


What’s Next

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.