mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2025-11-20 17:48:34 +00:00
| .. | ||
| README.md | ||
| using-oauth.gif | ||
| permalink |
|---|
| /credentials/salesforce |
Salesforce
You can use these credentials to authenticate the following nodes with Salesforce.
Prerequisites
Create a Salesforce account.
Using OAuth
::: tip ⛅️ Note for n8n.cloud users You'll only need to enter the Credentials Name and click on the circle button in the OAuth section to connect your Salesforce account to n8n. :::
- Access your Salesforce Dashboard.
- Click on the gear icon in the top right and select Setup from the dropdown list.
- In the Platform Tools category of the sidebar, select App Manager under the Apps section.
- Click on the New Connected App button.
- Enter any necessary information and click on the Enable OAuth Settings checkbox.
- Copy the OAuth Callback URL provided in the 'Salesforce OAuth2 API' credentials in n8n.
- On the Salesforce app creation page, paste the URL in the Callback URL field.
- Add the "Perform requests on your behalf at any time (refresh_token, offline_access)" scope in the Selected OAuth Scopes section.
- Add any other scopes you plan to use in the Selected OAuth Scopes section.
- Click on the Save button at the bottom of the page.
- On the New Connected App page, click on the Continue button.
- In the 'API (Enable OAuth Settings)' section of the page, click on the Click to reveal button to reveal the consumer secret.
- Copy the displayed Consumer Key and the Consumer Secret and use these with your Salesforce OAuth2 API credentials in n8n.
- Copy the part of the URL between
https://and.salesforce.comand replace 'yourcompany' in the Access Token URL in your Salesforce OAuth2 API credentials in n8n. - Click on the circle button in the OAuth section to connect a Salesforce account to n8n.
- Click on the Save button to save your credentials.
