Integration of Adobe AEM-5.6.1 and Salesforce

By TA Digital 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 Salesforce.com 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//

salesforce_img

Issues:

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 SalesForceSecretServlet.java 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);

configNode.getSession().save();

}

}

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.


GET HELP FROM OUR EXPERTS

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 the only global boutique agency that delivers the “best of both worlds” to clients seeking to achieve organizational success through digital transformation. Unlike smaller, regional agencies that lack the ability to scale or large organizations that succumb to a quantity-over-quality approach, we offer resource diversity while also providing meticulous attention to the details that enable strategic success.

Over the past 20 years, TA Digital has positioned clients to achieve digital maturity by focusing on data, customer-centricity and exponential return on investment; by melding exceptional user experience and data-driven methodologies with artificial intelligence and machine learning, we enable digital transformations that intelligently build upon the strategies we set into motion. We are known as a global leader that assists marketing and technology executives in understanding the digital ecosystem while identifying cultural and operational gaps within their business – ultimately ushering organizations toward a more mature model and profitable digital landscape.

Recognized in 2013, 2014, 2015, and 2019 Inc. 5000 list as one of the most successful technology companies in the United States, TA Digital is pleased also to share high-level strategic partnerships with world class digital experience platform companies like Adobe, SAP and Salesforce and possess global partnerships with industry leaders such as Sitecore, Episerver, Elastic Path, BigCommerce, AWS, Azure and Coveo.

TA Digital Marketing Team

Written By

TA Digital Marketing Team

More Blogs by the author

12 ways AI is transforming DevOps
12 Ways AI is Transforming DevOps TA Digital Marketing Team 5 min read