Integration of Adobe AEM-5.6.1 and Salesforce

By Marketing Team 2 min read

We recently finished integrating Adobe Experience Manager with Salesforce. In this integration, a lead generated from the website will go through a workflow and is finally pushed to Salesforce. Let us go through the main steps in doing the integration and issues encountered on the way.

Integration Steps:

In Salesforce Admin panel creates connected App.
Create Cloud Service configuration for Salesforce in Adobe AEM 5.6.1. Use Salesforce provided Consumer Key and Consumer Secret while creating the configuration.
Modify the workflow to suit your business process for validating the lead. As a final step, you would post the lead to Salesforce.
Create your website form which acts as the source of leads. Once a visitor submits the form, create a node in AEM with the data and initiate the workflow with the newly created node as the payload. Recommended path for creating the leads would be /etc/forms//



While trying to publish data from Adobe AEM to Salesforce we got Java Exceptions and after debugging we found issue with the “AEM-mcm-salesforce-1.0.6.jar”. The Java code in the “AEM-mcm-salesforce-1.0.6.jar” is looking for two properties “instanceurl”,”accesstoken” under the path /etc/cloudservices/salesforce/apr8/jcr:content”. Updating as given below fixed the issue.
if(redirectUri != null && redirectUri.length() > 0)


String nodePath = (redirectUri.substring(redirectUri.indexOf(“/etc/”), redirectUri.length()-5 ));

if(nodePath != null && nodePath.length() > 0)


ResourceResolver resourceResolver = request.getResourceResolver();

Session session = (Session)resourceResolver.adaptTo(Session.class);

Node configNode = session.getNode(nodePath).getNode(“jcr:content”);

String accessToken = responseBody.getString(“access_token”);

String instanceUrl = responseBody.getString(“instance_url”);

if(accessToken != null)

configNode.setProperty(“accesstoken”, accessToken);

if(instanceUrl != null)

configNode.setProperty(“instanceUrl”, instanceUrl);




Explore Additional Resources

Learn more on how to select the right CMS for your business and improve your customer’s Digital Experience.

Our Adobe Experience Cloud Consulting team specializes in helping you deliver a seamless, intelligent, and personalized customer experience.

Learn how our Salesforce Expertise will help our clients increase their customer and vendor engagement across their digital enterprise by implementing suitable ERP & CRM Systems.


We have one of the largest and deepest multi-solutions digital consulting teams in the world. Our proprietary processes and years of Digital Experience expertise have earned us a 97% customer satisfaction rating with our clients ranging from Global Fortune 1000 to Mid-Market Enterprises, leading educational institutions, and Non-Profits.

If you would like more help optimizing or Integration your AEM Reach Us Today.

About TA Digital

TA Digital is an innovative digital transformation agency, specializing in delivering the digital experience, commerce, and marketing solutions. For nearly two decades, we have been helping traditional businesses transform and create dynamic digital cultures through disruptive strategies and agile deployment of innovative solutions.

Marketing Team

Written By

Marketing Team

More Blogs by the author

Personalize Adobe CQ5 Welcome screen
Personalize Adobe CQ5 Welcome screen Marketing Team 3 min read