Introduction
This article serves as a comprehensive, step-by-step guide to assist you in establishing an integration between Salesforce and ONEiO. The Salesforce objects currently listed are:
- Case
- Asset
- Contact
- Contract
- Lead
- Opportunity
- Order
- Product
- Any Custom Objects
Currently, only object Case is supported for integrations made with Rule Robot.
To check how to integrate a Salesforce Custom Object, visit the article How to set up a Salesforce Custom Object in ONEiO.
In case you have questions related to setting up the integration, send an email to support@oneio.cloud.
You can sign up for a free trial of ONEiO from the following link: ONEiO Free Trial
Overview
This article gives an overview of the required steps to integrate ONEiO and Salesforce. In this guide, we cover the following steps required for bi-directional communication between ONEiO and Salesforce.
- Create a Salesforce developer account
- Create a New Connected App in Salesforce
- Create Salesforce endpoint in ONEiO app
- Create ONEiO Account and Integration rule in Salesforce
Sending messages from ONEiO to Salesforce
ONEiO accesses Salesforce by using Salesforce REST API.
Create a Salesforce developer account
To get started, sign up for a Salesforce developer account by visiting this link: https://developer.salesforce.com/signup and fill in the form. This action will generate a developer instance with a base URL resembling https://[your-instance]-dev-ed.develop.my.salesforce.com.
Note
It may take a few minutes to receive the email from Salesforce with the login link.
Install the ONEiO Integration components package
Install the ONEio integration components package by simply clicking on this link.
During the installation process, you'll be prompted to enter your login credentials and follow a few straightforward steps.
-
Select "Install for All Users"
-
Approve Third Party Access
-
Complete installation process
Create a New Connected App in Salesforce
Basic Information | |
---|---|
Connected App Name | Fill the field with a name of your choice |
API Name | added automatically |
Contact Email | add the integration user's email |
API (Enable OAuth Settings) | |
---|---|
Enable OAuth Settings | ✔ |
Callback URL | https://login.salesforce.com/services/oauth2/success |
Selected OAuth Scopes | Access the Salesforce API Platform (sfap_api) |
Require Proof Key for Code Exchange (PKCE) Extension for Supported Authorization Flows | ✔ |
Require Secret for Web Server Flow | ✔ |
Require Secret for Refresh Token Flow | ✔ |
Custom Connected App Handler | |
---|---|
Run As | click on the search bar icon and select the integration user from the options provided. |
Click on Save and then click on Continue.
Now, you can view all the details of your recently created ONEiO app in Salesforce, including the generated credentials. To access your credentials, which include the Consumer Key and Consumer Secret, click on Manage Consumer Details and proceed to log in.
Note
Information like Consumer Key, Consumer Secret and Security Token is sensitive, and it's strongly discouraged to write it down in a note. We recommend directly copying it from Salesforce and pasting it into ONEiO, and vice versa. The mention of using a note is solely to facilitate a smooth training experience, eliminating the need to switch back and forth between Salesforce and ONEiO.
Make a note of your Consumer Key and Consumer Secret; they will be required for future steps in the integration process.
Navigate to
Setup Identity OAuth OpenID Connect Settings
Ensure that both Allow OAuth Username-Password Flows and Allow OAuth User-Agent Flows are toggled on.
Create Salesforce endpoint in ONEiO app
Important
The Base URL must be retrieved from Salesforce Classic regardless of the Salesforce version you are using (I.e. Lightning). You can switch to Salesforce Classic by clicking on the Profile Icon and then on Switch to Salesforce Classic. The Base URL looks like this:
Note
Keep the OAuth2 Token URL field empty during the initial setup. This field will be automatically populated after the endpoint is created. Ensure that you do not manually input information into this field at this stage of the configuration.
Create ONEiO Account and Integration rule in Salesforce
The Username and Password are retrievable in ONEiO.
Go to ONEiO and open your endpoint in Edit mode (ensure you are in edit mode to generate the password).
Copy the Username from ONEiO and paste it into the corresponding field in Salesforce.
Next, in ONEiO, click on the Generate new password button and then on Generate. This will create a new password for the integration user.
Create Integration Rule | |
---|---|
Name | name of your choice |
Object | Case |
Field | CaseNumber |
Operator | NOT IN |
Values | 12345 |
Click on Save.
Comments
Please sign in to leave a comment.