Integrating Salesforce with CQ5

01 / Sep / 2014 by Vivek Dhiman 3 comments

Adobe AEM provide its extendable capabilities to integrate  with other products. Below demonstration describe how to connect Adobe CQ5 with Salesforce which is the market’s leading cloud based CRM System. CQ5 provide 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 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 new app. Fill in required details as shown in below images. Callback Url here accept only https urls, so our CQ5 must be SSL configured. Callback url is the url of cloud service that we will create in CQ5.

img1

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 below image. Click allow.

img4

5)   We can test the connection by transfer the data from CQ5 to Sales force.  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 provide the OOTB Workflow for this activity. We just need to add the salesforce configuration that we added in 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.

FOUND THIS USEFUL? SHARE IT

comments (3)

  1. Arpit Gupta

    Hi Vivek ,

    I am getting below error when I start the workflow , did you also face something like this ?

    Error :
    com.adobe.granite.workflow.WorkflowException: Process implementation not found: com.adobe.cq.mcm.salesforce.SalesforceExportProcess
    at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:202)

    Reply

Leave a Reply to Peter Gombos Cancel reply

Your email address will not be published. Required fields are marked *