# Legacy SalesForce Authentication Node

This node is part of the **Salesforce Integration nodes** and handles the required **authentication to access your Salesforce domain**. For this node to work it is imperative to have a connected app within SalesForce. Learn more on how to create a supported connected app[ <mark style="color:purple;">here.</mark>](https://studio.docs.ai.vonage.com/sms/nodes/integrations/salesforce-authentication/how-to-create-a-salesforce-connected-app)

<figure><img src="https://3877181490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L_81A0PNZfdawu_TPAO%2Fuploads%2Fq4S3ZJo8QhGn9jxIHbAf%2F0.png?alt=media" alt=""><figcaption></figcaption></figure>

The following details are unique to your Salesforce account and can be accessed via the UI of your domain.

All fields are mandatory and some can be hidden for privacy reasons.

| Field Name               | Description                                                                                              |
| ------------------------ | -------------------------------------------------------------------------------------------------------- |
| Client ID                | This is the "Consumer Key" of your SF domain. You will need to create a connected app prior.             |
| Client Secret            | This is the "Consumer Secret" of your SF domain.                                                         |
| User Name                | Your Salesforce username. This user should have admin access permissions to the account.                 |
| Password                 | Your Salesforce password.                                                                                |
| <p>Parameter</p><p>​</p> | This parameter will save the access token you will receive from Salesforce upon approved Authentication. |

{% hint style="warning" %}
**Check if your password contains special characters such as a # .**

*If it does, please use URL encoding to change the format of your password. You can do this using postman.*

*E.g. instead of #42LBMDEH → %1242LBMDEH*
{% endhint %}

### **Test your node** <a href="#id-8hh8zq113lf6" id="id-8hh8zq113lf6"></a>

If you want to test your Salesforce Authentication node, you can do so by clicking on "Test Request" on the top right of the node.

It will open a new window that shows you Salesforce's response to your request in a raw JSON file. The previously defined parameter(s) you added in the Parameter tab will hold the access token under "Object Path" accessible when clicking on the "Test Results" tab.

In the example below, the Authentication was successful. Now, you can continue with the next action, e.g. requesting data from a Salesforce record with the[ Get Data node](https://studio.docs.ai.vonage.com/voice/nodes/integrations/salesforce-get-data).

![](https://3877181490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L_81A0PNZfdawu_TPAO%2Fuploads%2F5IMhrc3ItKK06w2hdAbE%2F1.png?alt=media)

{% hint style="info" %}
**Having trouble with your request?**

*For error tracking, please have a look at Salesforce's detailed documentation.*

*Authentication EP:*

[*<mark style="color:purple;">https://help.salesforce.com/s/articleView?id=sf.remoteaccess\_oauth\_username\_password\_flow.htm\&type=5</mark>*](https://help.salesforce.com/s/articleView?id=sf.remoteaccess_oauth_username_password_flow.htm\&type=5)

*Creating Oauth connected app:*

[*<mark style="color:purple;">https://developer.salesforce.com/docs/atlas.en-us.api\_rest.meta/api\_rest/intro\_oauth\_and\_connected\_apps.htm</mark>*](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_oauth_and_connected_apps.htm)*​*
{% endhint %}

​
