Salesforce
Last updated
Was this helpful?
Last updated
Was this helpful?
UI Bakery allows you to easily connect to Salesforce with no need for additional layers like APIs or third-party services. You can connect Salesforce as a or via an .
On the Data sources page, click Connect, and select Salesforce in the Data sources list.
Give your data source a name and specify the Salesforce URL (optional).
Click Connect to Salesforce and authorize the access in the Salesforce app.
Finally, click Test connection to check whether the connection can be established, and then click Connect Datasource to complete the setup.
First, you need to create a connected app in Salesforce. To do so, follow the instruction below:
In Lightning Experience, open Setup, navigate to Apps > App Manager and click New Connected App.
In Salesforce Classic, open Setup, navigate to Build > Create > Apps, scroll down to Connected Apps, and click New.
Specify all the required information in the Basic Information section.
Next, select the Enable OAuth Settings checkbox in the API section:
Specify the following Callback URL - https://cloud.uibakery.io/datasource-auth/callback
.
In Selected OAuth Scopes, add all the OAuth scopes you need. Make sure to add the Perform requests at any time
scope.
Even though the Full access
scope is a valid option that you can add, it's important to note that it doesn't grant all the necessary permissions.
Click Save.
You'll be redirected to the Manage Connected Apps page. There, you can click Manage Consumer Details in the API section to copy the Consumer Key
and Consumer Secret
that will be required later.
Now, in UI Bakery, follow these steps to configure the Salesforce data source:
On the Data sources page, click Connect, and select HTTP API in the Data sources list.
In the Authentication settings dropdown, select OAuth2.
Next, in the OAuth2 Flow dropdown, select the flow you need:
Authorization Code Flow
Client Credentials Flow
Password Grant
Click Connect to API first and then Connect Datasource to complete the setup.
If you encounter an error message while testing the connection, double-check that the Callback URL and OAuth scopes are correctly configured in Salesforce.
Make sure your Salesforce instance URL ends in .salesforce.com
.
Make sure that the correct permissions are granted to the connected app.
Once you've established the connection between UI Bakery and Salesforce, you can start interacting with its data.
Due to the on-premise version , connection to Salesforce there requires additional setup. Refer to this page for more details
If you've connected Salesforce as a , the action type is supported for this data source.
If you've connected Salesforce as an , the action type is supported for this data source.