Get Your Salesforce Credentials
Overview
This section explains how to obtain the necessary credentials from Salesforce.
Please note that this information is provided to help you connect your Salesforce system to OneEnterprise. Since Salesforce is an external system, the process of creating an App and generating client IDs and secrets may change with application updates. OneEnterprise does not control the Salesforce process. If you encounter any issues, contact the application support team.
Callback/Redirect URL
Before connecting your application to OneEnterprise, create your Salesforce application, and ensure it is fully functional and all settings are correctly defined. Failing to do so, you will not be able to connect your application. We have listed all the requirements under the 'Get Your Credentials' section. You need to make sure that you have all the information before making the connection.
Reference Links:
- Create Salesforce Application
- How to Give a Redirect URL
The Redirect URL is crucial for the integration. When creating the app in Salesforce, you must provide the redirect URL. A redirect URL, also called a callback URL, is the web address where a user is directed after completing a specific action — typically after authentication, payment, or submitting a form.
- Refer to the Redirect URL link to learn how to use it.
- Following redirect URL must be used:
- Callback/Redirect URL: https://cloudmanager.am.dev.oneenterprise.com/oAuth2CallBack
Required Credentials
To connect the Salesforce system with OneEnterprise, you need the following details from Salesforce. You can get this from your existing application, or you can create a new application. Get the information below from your Salesforce account and enter it in the respective fields:
- Client Identifier (Consumer Key)
- Client Secret (Consumer Secret)
- Host URL
Locate Client ID and Client Secret for an Existing Connected App
Follow the steps below to get your credentials:
- First, log in to your Salesforce account.
- Click on the Setup Home.
- Navigate to App > App Manager.
- Click on the chevron icon in the Apps section.
- Locate the desired Connected App in the list.
- Click on the chevron icon provided at the end of the row.
- Select the 'View' option from the list.
- Click on the 'Manage Consumer Details' button.
- To view the 'Callback URL', scroll down the page. Below the Selected OAuth Scopes section, 'Callback URL' can be found.
- Under 'Consumer Details', look for 'Client Identifier' (Consumer Key), and 'Client Secret' (Consumer Secret).
- Each field will have a 'Copy' button to copy the Client Identifier and Client Secret.
- To copy the Client Identifier and Client Secret, click on the 'Copy' button for each field.
By default, Salesforce refresh tokens do not expire after being generated. If you want to change the refresh token expiration period, follow the steps below.
- Go to the "Manage Connected Apps", click on the 'Manage' button.
- Click on the 'Edit Policies' button.
- Scroll down to the 'OAuth Policies' section.
- Under the 'Refresh Token Policy', select an appropriate option by selecting the radio button.
- If you select the 'Expire refresh token if not used for' option, you can set the token expiry duration in hours, days, or months using the drop-down. (Recommended)
- If you select the 'Expire refresh token after' option, you can set the token expiry duration in hours, days, or months using the drop-down.
Register Salesforce App
- Log in to your Salesforce account.
- Navigate to Setup > Apps > App Manager.
- Click the 'New External Client App' button.
- You need to fill in the details in the Basic Information and API (Enable OAuth Settings) section.
- Expand the section by clicking on the band.
- Fill in all the required details in this section.
- Expand the API (Enable OAuth Settings) section.
- Select the check box for Enable OAuth.
- Enter the callback URL in the box.
- Select the Scope as:
- Full Access
- Perform requests at any time (Refresh, Token, Offline access) in the OAuth Scope.
- Perform requests on your behalf at any time (offline_token).
- This will help you obtain a refresh token, eliminating the need to re-authenticate each time you request an access token.
- After filling in all the required details, click on the 'Create' button.
Related Articles
Get Your Microsoft Dynamics 365 Business Central Credentials
Overview This section explains how to obtain the necessary credentials from Microsoft Dynamics 365 Business Central. Please note that this information is provided to help you connect your Microsoft Dynamics 365 Business Central system to ...
Get Your Shopify Credentials
This section explains how to obtain the necessary credentials from Shopify. Required Credentials To connect the Shopify system with OneEnterprise, you need the following details from Shopify. Get the below information from your Shopify account and ...
Get Your Xero Credentials
This section explains how to obtain the necessary credentials from Xero. Please note that this information is provided to help you connect your Xero system to OneEnterprise. Since Xero is an external system, the process of creating an App and ...
Get Your Microsoft Dynamics 365 Sales Credentials
Overview This section explains how to obtain the necessary credentials from Microsoft Dynamics 365 Sales. Please note that this information is provided to help you connect your Microsoft Dynamics 365 Sales system to OneEnterprise. Since Microsoft ...
Get Your SAP Business One Credentials
This section explains how to obtain the necessary credentials from SAP Business One. Please note that this information is provided to help you connect your SAP Business One system to OneEnterprise. Since SAP Business One is an external system, the ...