Skip to main content

Registering a Salesforce App and Obtaining Client ID / Secret (for API Calls / OAuth)

Register Salesforce App :

1. Access your account and navigate to Setup (select the gear icon located in the top right corner)

2. Type 'app' into the search bar and launch the App Manager.

3. Next, select 'New Connected App' to generate a fresh OAuth App

4. Provide a name for your App and: - Activate OAuth Settings - Define the callback URLs with the following entry (one per line) https://login.salesforce.com/services/oauth2/success ,  - Include your desired OAuth scope or simply select 'Full access'. - Incorporate the 'Perform requests on your behalf at any time (offline_token)' scope to acquire a refresh token, ensuring there's no need for repeated authentication when requesting an access token:

5. Click "Save"

Get Client Id and Client Secret for Salesforce App :

After creating the App, we must locate the App Id / Secret for API usage

1. Access the App Manager
2. Locate the recently generated App and select 'View' (click on the small arrow icon to the right)
3. After the App page loads, you can Duplicate the Consumer Key and Consumer Secret (click 'reveal' to view). Additionally, copy any of the Callback URLs.
4. That's it, you can now use these 3 pieces to connect with Salesforce