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.
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
nameVariable in your Contact Form needs to be passed here. Add the other fields one by one:
- 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.
Updated 5 months ago