{"id":15023,"date":"2014-09-01T14:55:59","date_gmt":"2014-09-01T09:25:59","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=15023"},"modified":"2024-06-27T11:56:34","modified_gmt":"2024-06-27T06:26:34","slug":"integrating-salesforce-with-cq5","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/integrating-salesforce-with-cq5\/","title":{"rendered":"Integrating Salesforce with CQ5"},"content":{"rendered":"<p>Adobe AEM provide its extendable capabilities to integrate\u00a0 with other products. Below demonstration describe how to connect Adobe CQ5 with Salesforce which is the market\u2019s 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.<\/p>\n<p>Steps to Connect to Salesforce :<\/p>\n<p>1) \u00a0CQ5 uses OAuth mechanism to connect to\u00a0Salesforce. So , we first need to create an app inside salesforce to get customer secret and access token.<\/p>\n<p>Login to salesforce. Go to Setup -&gt;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.<\/p>\n<p><a href=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/img1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-15024\" src=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/img1.png\" alt=\"img1\" width=\"627\" height=\"307\" \/><\/a><\/p>\n<p>2) \u00a0On save, it provides you customer key\/customer secret which we can use at CQ5 side to connect with salesforce.<\/p>\n<p><a href=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/img2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-15025\" src=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/img2.png\" alt=\"img2\" width=\"625\" height=\"289\" \/><\/a><\/p>\n<p>3) \u00a0 \u00a0Create the salesforce cloud service, Dialog will appear which will ask to enter the key\/secret. Fill in value\u00a0you got from step 2 &amp; click Connect to Salesforce.<\/p>\n<p><a href=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/img3.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-15026\" src=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/img3.png\" alt=\"img3\" width=\"625\" height=\"225\" \/><\/a><\/p>\n<p>4) \u00a0CQ5 sends REST call to salesforce &amp; if salesforce authorizes it, you will be able to view below image. Click allow.<\/p>\n<p><a href=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/img4.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-15027\" src=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/img4.png\" alt=\"img4\" width=\"625\" height=\"250\" \/><\/a><\/p>\n<p>5) \u00a0 We can test the connection by transfer the data from CQ5 to Sales force. \u00a0Here we will export the CQ5 users as salesforce leads. We can check the user properties in CQ5 by going through profile node of user.<\/p>\n<p><a href=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/img5.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-15028\" src=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/img5.png\" alt=\"img5\" width=\"622\" height=\"125\" \/><\/a><\/p>\n<p>6) \u00a0CQ5 provide the OOTB Workflow for this activity. We just need to add the salesforce configuration that we added in previous steps.<\/p>\n<p><a href=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/img6.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-15029\" src=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/img6.png\" alt=\"img6\" width=\"622\" height=\"125\" \/><\/a><\/p>\n<p><a href=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/img7.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-15030\" src=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/img7.png\" alt=\"img7\" width=\"621\" height=\"224\" \/><\/a><\/p>\n<p>7) \u00a0 \u00a0Start the workflow, Select the profile node as payload as it contains the properties which will be map as lead\u2019s properties in salesforce.<\/p>\n<p><a href=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/img8.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-15031\" src=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/img8.png\" alt=\"img8\" width=\"621\" height=\"200\" \/><\/a><\/p>\n<p>8)\u00a0 \u00a0After successful completion you can view your lead in Salesforce.com<\/p>\n<p><a href=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/img9.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-15032\" src=\"\/blog\/wp-ttn-blog\/uploads\/2014\/07\/img9.png\" alt=\"img9\" width=\"619\" height=\"171\" \/><\/a><\/p>\n<p><strong>Troubleshooting Tips :<\/strong><\/p>\n<p>1)\u00a0\u00a0\u00a0\u00a0\u00a0 CQ5 Instance must be SSL enabled.<\/p>\n<p>2)\u00a0\u00a0\u00a0\u00a0\u00a0 Salesforcetake 5-10 min to enable the app after creation, so connect CQ with Salesfore after that.<\/p>\n<p>3)\u00a0\u00a0\u00a0\u00a0\u00a0 Callback URL should be\u00a0fully qualified path of your configuration page with extension.<\/p>\n<p>4)\u00a0\u00a0\u00a0\u00a0\u00a0 Before starting the workflow, make sure you have tagged your salesforce configuration inside it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Adobe AEM provide its extendable capabilities to integrate\u00a0 with other products. Below demonstration describe how to connect Adobe CQ5 with Salesforce which is the market\u2019s 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. [&hellip;]<\/p>\n","protected":false},"author":128,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":2},"categories":[6009],"tags":[4847,1207,1501],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/15023"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/128"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=15023"}],"version-history":[{"count":1,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/15023\/revisions"}],"predecessor-version":[{"id":62644,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/15023\/revisions\/62644"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=15023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=15023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=15023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}