Integrating Salesforce with AEM provides lead management capabilities and leverages the existing capabilities provided out of the box by Salesforce. You can configure AEM to post leads to Salesforce and create components that access data directly from Salesforce.
To configure AEM to integrate with Salesforce, you need to first configure a remote access application in Salesforce. Then you configure the salesforce cloud service to point to this remote access application.
NOTE
You can create a free developer account in Salesforce.
To configure AEM to integrate with Salesforce:
CAUTION
You need to install the Salesforce Force API integration package before you continue with the procedure. For more details on how to work with packages see the How to Work with Packages page.
- In AEM, navigate to Cloud Services. In Third-Party Services, click Configure Now in Salesforce.
- Create a new configuration, for example, developer.
- NOTE The new configuration redirects to a new page: http://localhost:4502/etc/cloudservices/salesforce/developer.html. This is the exact same value that you need to specify in the Callback URL while creating the remote access application in Salesforce. These values must match.
- Log in to your salesforce account (or if you do not have one, create one at https://developer.force.com.)
- In Salesforce, navigate to Create > Apps to get to Connected Apps (in former versions of salesforce, the workflow was Deploy > Remote Access).
- Click New to connect AEM with Salesforce.
Enter the Connected App Name, API Name, and Contact Email. Select the Enable OAuth Settings check box and enter the Callback URL and add an OAuth scope (for example, full access). The callback URL looks similar to this: http://localhost:4502/etc/cloudservices/salesforce/developer.html
Change the server name/port number and page name to match your configuration.
Click Save to save the salesforce configuration. Salesforce creates a consumer key and consumer secret, which you need for AEM configuration.
Reference
https://experienceleague.adobe.com/docs/experience-manager-65/administering/integration/salesforce.html?lang=en