April 10, 2020
Estimated Post Reading Time ~

Integrating Salesforce with CQ5

Adobe AEM provides its extendable capabilities to integrate with other products. The below demonstration describes how to connect Adobe CQ5 with Salesforce which is the market’s leading cloud-based CRM System. CQ5 provides OOTB components for the integration purpose. It helps the organization to target the customers through web channels as per their status in CRM.
Steps to Connect to Salesforce :
1)  CQ5 uses the OAuth mechanism to connect to Salesforce. So, we first need to create an app inside salesforce to get customer secret and access token.
Login to salesforce. Go to Setup ->Apps section and create a new app. Fill in the required details as shown in the below images. Callback Url here accepts only https URLs, so our CQ5 must be SSL configured. Callback url is the url of cloud service that we will create in CQ5.
2)  On save, it provides you customer key/customer secret which we can use at CQ5 side to connect with salesforce.
img2
3)    Create the salesforce cloud service, Dialog will appear which will ask to enter the key/secret. Fill in value you got from step 2 & click Connect to Salesforce.
img3
4)  CQ5 sends REST call to salesforce & if salesforce authorizes it, you will be able to view the below image. Click allow.
img4
5)   We can test the connection by transfer the data from CQ5 to Salesforce.  Here we will export the CQ5 users as Salesforce leads. We can check the user properties in CQ5 by going through profile node of user.
img5
6)  CQ5 provides the OOTB Workflow for this activity. We just need to add the salesforce configuration that we added in the previous steps.
img6
img7
7)    Start the workflow, select the profile node as payload as it contains the properties which will be map as lead’s properties in salesforce.
img8
8)   After successful completion, you can view your lead in Salesforce.com
img9
Troubleshooting Tips :
1) CQ5 Instance must be SSL enabled.
2) Salesforcetake 5-10 min to enable the app after creation, so connect CQ with Salesfore after that.
3) Callback URL should be fully qualified path of your configuration page with extension.
4) Before starting the workflow, make sure you have tagged your salesforce configuration inside it.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.