Adobe
AEM provide its extendable capabilities to integrate with other products.
Below demonstration describe how to connect Adobe AEM with Salesforce which is
the market’s leading cloud based CRM System. AEM 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:
AEM uses OAuth mechanism to connect to Salesforce. So , first we
need to create an connected app inside salesforce to get customer secret and
access token.
Go to login.salesforce.com. Click on Setup on the top right corner. Search for Apps and create a custom app. Fill in
required details as shown in below images. Callback Url here accept only https
urls, so our AEM must be SSL configured. Check here how to configure SSL in AEM. Callback url is the url of cloud
service that we will create in AEM.
Create new custom app |
Select an image for your app.
Choose the required tabs for your custom app.
Choose the user profile for which the custom app will be visible in the Force.com AppExchange menu. You can make a custom app as the default custom app of the profile. If a custom app is set as the default for a profile, then you cannot make it invisible for that profile.
Create a new connected app.
Search for apps in setup. Goto apps, scroll down to Connected apps section and create a new connected app.
- Fill all the required fields.
- Enable OAuth settings
- Enter the callback url. Callback url should be HTTPS. Check here how to enable HTTPS in AEM.
- Select the OAuth scopes. Connection may not be established if scopes are not selected appropriately. Connection was not successful when I have selected only "Full Access". So I selected all the OAuth scopes.
- Click on Manage button and Enable IP relaxation.
- Take a note of consumer key and consumer secret. We need to enter these values in Salesforce cloud configuration in AEM.
Thats all your salesforce app is create. Now lets establish connection from AEM to Salesforce.
Create a salesforce cloud configuration:
Login to your AEM instance and navigate to http://localhost:4502/miscadmin#/etc/cloudservices/salesforce. Click on new and create a new cloud configuration.
Double click on the newly created cloud service configuration to edit. Login url will be auto populated on the dialog. Enter customer key and customer secret and click on connect to salesforce. If connection is successful, then success alert will be displayed as shown below.
Troubleshooting:
- Callback url should be HTTPS. Check here how to enable HTTPS in AEM.
- Callback URL should be fully qualified path of your configuration page with extension.
- If we get this error response{"error":"invalid_grant","error_description":"authentication failure"} then check the authorization_url value. This value is hardcoded in the dialog in connector. So when we try to connect to ****.salesforce.com it tries to establish connection to login.salesforce.com.
- Adobe saleforce connector uses TLS 1.0 to connect to salesforce. Salesforce disabling TLS 1.0. Check Adobe's TLS 1.0 support ending - FAQ. Salesforce is requiring an upgrade to TLS 1.1 or higher by July 22, 2017. After clicking connect to salesforce, check browser console logs to see if any errors.
- Salesforce connector may not be able to connect succesfully if AEM is behind a proxy. Enable proxy in Open Day Commons HTTP Client 3.1 and Apache HTTP Components Proxy Configuration.If that doesn't work then you may need to extend the connector and modify SalesforceClient.java.
- Make sure to give the appropriate OAuth scope for the connected app. In sales force we need to remove Full Access (Full) OAuth Scopes, if we use this then refresh token will not be effective. Check here for more info.
- Sometimes we may not be able to refresh the Salesforce access_token using the rest api. Check here to resolve it.
- Salesforce takes 5-10 min to enable the app after creation, so connect AEM with Salesfore after that.
By now you will be able to establish connection to Salesforce.
I recommend to read this blog because there is a Full information of salesforce integration form...
ReplyDeletesalesforce integration
Thank you so much for sharing with us. Appreciate them.
DeleteThank You :)
DeleteHi Kishore Sir, We are doing SF integration with our aem application for sso functionality using authorisation code flow approach. I have completely got stuck with the approach. On login am taking the user to salesforce login page, user enters login creds and submits the form, it redirects back to aem, how and where to configure this call back url in aem, what is the script we need to write to read code parameter and send it back to salesforce to get access token. Please help on this, I have been got stuck from 2 weeks and missed deadlines. Please share the documents and implementation details([email protected]) if you have any. Thanks in advance.
DeleteExcellent post!!! The future of cloud computing is on positive side. With most of the companies integrate Salesforce CRM to power their business; there is massive demand for Salesforce developers and administrators across the world.Salesforce Training in Chennai | Salesforce Training Institutes in Chennai
ReplyDeleteGreat Article
DeleteCloud Computing Projects
Networking Projects
Final Year Projects for CSE
JavaScript Training in Chennai
JavaScript Training in Chennai
The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training
The article was very clear and it's usefull information salesforce Online Training Hyderabad
ReplyDeletehey kishore
ReplyDeletedid you try to export the usergenrated content to salesforce.. in the publish
it is giving me error in 6.1/6.2 publish but not in author
com.adobe.granite.workflow.WorkflowException: Process execution resulted in an error
at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:194)
at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:232)
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:512)
at org.apache.sling.event.impl.jobs.queues.JobRunner.run(JobRunner.java:205)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com.adobe.granite.workflow.WorkflowException: Failed to execute process
at com.day.cq.workflow.compatibility.CQWorkflowProcessRunner.execute(CQWorkflowProcessRunner.java:108)
at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:184)
... 6 more
Caused by: com.day.cq.workflow.WorkflowException: Crypto Exception in Lead Creation Workflow: Cannot convert byte data
at com.adobe.cq.mcm.salesforce.SalesforceExportProcess.execute(SalesforceExportProcess.java:277)
at com.day.cq.workflow.compatibility.CQWorkflowProcessRunner.execute(CQWorkflowProcessRunner.java:93)
... 7 more
Your blog is so interesting
ReplyDeleteSalesForce Online Training
Nice Blog with useful concept. I feel happy to see your informative blog, Thanks for sharing such a nice blog. Software Testing Training Institute in Chennai | Selenium Training Institute in Chennai | ISTQB Training Institute in Chennai
ReplyDeleteVery interesting article.Helps to gain knowledge about lot of information. Thanks for posting information in this blog...
ReplyDeleteJava Training Institute in Chennai | Java Training Center in Velachery | Advanced java Courses in Porur
Thanks for sharing this valuable information to our vision, if anyone looking a Web Designing Training Institute in Chennai | Web Design Training Center in Velachery | WebDesign Courses in Taramani
ReplyDeleteReally superb post..Amazing content.Thanks for posting such a wonderful blog..keep updating..
ReplyDeleteEmbedded Project Center in Chennai | Embedded Project Center in Velachery | Embedded Projects in Madipakkam | Embedded Projects Institute in Pallikaranai
Great article Glad to find your blog,awesome blog with informative content.Thanks for sharing.
ReplyDeleteFinal Year Project Center in Chennai | Final Year Projects in Velachery | Final Projects for all domain Center in Velachery | Final Year projects for BE in Chennai
Really is very interesting and informative post, I saw your website and get more details..Nice work. Thanks for sharing your amazing article with us..
ReplyDeleteImage Processing Project Center in Chennai | Image Processing projects in Velachery | Image Processing Projects for BE in Velachery | Image Processing projects for ME in Velachery | Image processing projects in Chennai
Pretty blog, so many ideas in a single site, thanks for the informative article, keep updating more article.
ReplyDeleteAndroid Project Center in Chennai | Android Project Center in Velachery | Android Projects for BE in Velachery | Android Projects for ME in Pallikaranai
I have read your blog. Good and more information useful for me, Thanks for sharing this information keep it up....
ReplyDeleteDot Net Project Center in Chennai | Dot Net Project Center in Velachery | Dot Net Projects in OMR
Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision...
ReplyDeleteJava Project Center in Chennai | Java Project Center in Velachery | Java Projects in Velachery
Very interesting blog which helps me to get the in depth knowledge about the technology, Thanks for sharing such a nice blog...
ReplyDeleteIOT Project Center in Chennai | IOT Project Center in Velachery | IOT Projects for BE in Pallikaranai | IOT Projects for ME in Taramani
I have read your blog its very attractive and impressive. I like it your blog.
ReplyDeleteMatLab Project Center in Chennai | Matlab Training Center in Velachery | Matlab Training Center in Perungudi | MatLab projects in Perungudi
Really nice and good post. Thank you for sharing amazing information.
ReplyDeletePHP Project Center in Chennai | PHP Project Center in Velachery | PHP Projects in Velachery
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge.
ReplyDeleteVLSI Project Center in Chennai | VLSI Project Center in Velachery | VLSI Projects in Pallikaranai | VLSI Projects in Guindy | VLSI Projects in Taramani
Very interesting topic. Helps to gain knowledge about lot of information. Thanks for posting information in this blog.
ReplyDeleteCloud Computing Project Center in Chennai | Cloud Computing Project Center in Velachery | Cloud Computing Project Center in Medavakkam
Really Very happy to see this blog. thanks for sharing such a amazing blog...
ReplyDeleteFinal Year Project Center in Chennai | Final Year Projects in Velachery
This is really very impressive article with useful content,thanks for sharing your amazing post.
ReplyDeleteMatLab Project Center in Chennai | MatLab Project Center in Velachery | MatLab projects in Perungudi
Really Very happy to see this blog. thanks for sharing such a amazing blog...
ReplyDeleteBest IOT Project Center in Chennai | IOT Project Center in Velachery | IOT Projects in Guindy
Thanks to share the useful information on your blog,
ReplyDeleteCloud Computing Project Center in Chennai | Cloud Computing Project Center in Velachery | Cloud Computing Projects in Tambaram
Nice and interesting article to read..... keep updating
ReplyDeleteMBA Project Center in Chennai | MBA Project Center in Velachery | MBA Projects in Velachery | MBA Projects in Taramani
Awesome Blog with informative concept. Really I feel happy to see this useful blog, Thanks for sharing such a nice blog.
ReplyDeleteJava Project Center in Chennai | Java Projects Center in Velachery | Java Projects in Perungudi
Really Very happy to see this blog. thanks for sharing such a amazing blog...
ReplyDeleteImage Processing Project Center in Chennai | Image Processing Projects in Velachery | Image Processing Projects in Taramani
Very interesting, good job and thanks for sharing such blog. It is very interesting to read. Its pretty good and well noted.
ReplyDeleteCloud Computing Project Center in Chennai | Cloud Computing Projects in Velachery
Thanks for giving nice information and informative blog...It's really an amazing post..keep updating..
ReplyDeleteMBA Project Center in Chennai | MBA Projects in Velachery | MBA Projects in Perungudi | MBA Finance Projects in Velachery | MBA HR Projects in Velachery | MBA Marketing Projects in Velachery
Excellent Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge...
ReplyDeleteFinal Year Projects for BCA in Chennai | Final Year Projects for BCA in Velachery | Final Year Projects for MCA in Velachery | Final year Projects in Velachery
Very nice information to updating..Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging…
ReplyDeleteElectrical Project Center in Chennai | Electrical projects in Velachery | Electrical Projects in St.thomas Mount
Very interesting, good job and thanks for sharing such blog. It is very interesting to read. Its pretty good and well noted. All your points are very useful.
ReplyDeleteCloud Computing Project Center in Chennai | Cloud Computing Projects in Velachery | Cloud Computing Projects in Chrompet
I read this article. I think You put a lot of effort to create this article. I appreciate your work.
ReplyDeleteEmbedded System Training Institute in Chennai | Embedded Training Center in Velachery | Embedded Training in Guindy
Thanks for sharing this information, it helped me a lot in finding valuable resources for my career
ReplyDeleteJava Training Institute in Chennai | Java Training Center in Velachery | java Training in Chennai
I have read your post, its very attractive and impressive. I like it your blog.
ReplyDeleteC and C++ Training Institute in Chennai | C & C++ Training Center in Chennai | Online Training in Velachery
Great article Glad to find your blog. Thanks for sharing.
ReplyDeletePCB Design Training Institute in Chennai | PCB Training Center in Velachery | PCB Design Course in Velachery
trung tâm tư vấn du học canada vnsava
ReplyDeletecông ty tư vấn du học canada vnsava
trung tâm tư vấn du học canada vnsava uy tín
công ty tư vấn du học canada vnsava uy tín
trung tâm tư vấn du học canada vnsava tại tphcm
công ty tư vấn du học canada vnsava tại tphcm
điều kiện du học canada vnsava
chi phí du học canada vnsava
#vnsava
@vnsava
It is very awesome and wonderful to visit your site.Thanks for sharing this information,this is helpful to me a lot...
ReplyDeleteJava Training Institute in Chennai | java Training Center in Velachery | Java Training in Velachery | Online Training Institute in Velachery
Awesome Blog with Smart Content, Thanks for sharing such a nice blog..
ReplyDeleteEmbedded System Training in Chennai | Embedded Training Center in Velachery | Online Training Institute in Velachery
I have read your blog. Your information is really useful for beginner. information provided here are unique and easy to understand.Thanks for this useful information.......
ReplyDeletePCB Design Training in Chennai | PCB Training Institute in Velachery | PCB Courses in Velachery | Online Training Institute in Velachery
Your Post is really wonderful and amazing content.Thanks for sharing such a useful blog and really good...
ReplyDeleteJava Training Institute in Chennai | Java Training Center in Velachery | Online Training Institute in Velachery
Thanks for giving nice information from your blog...It's really an amazing post..
ReplyDeleteAWS Certification Training in Chennai | AWS Training Center in Velachery | AWS Online Training in Velachery | AWS Training Institute in Velachery
Thanks for giving nice information from your blog...It's really an amazing post...
ReplyDeleteTally Training Institute in Chennai | Tally Training Center in Velachery | Tally Training with GST Training in Velachery | Online Training Center in Velachery
Brilliant article. The information I have been searching precisely. It helped me a lot, thanks. Keep coming with more such informative article.
ReplyDeleteC and C++ Training Institute in Chennai | C and C++ Training Center in Velachery | C & C++ Training in Velachery | Online Training in Velachery
I have read your blog, its really very attractive and impressive. I like it your post. Thanks for sharing such a wonderful blog with us...
ReplyDeletePCB Training Institute in Chennai | PCB Training Center in Velachery | PCB Online Courses in Velachery | Online Training Center in Velachery
Very informative blog. Thanks a lot for sharing this wonderful blog. keep updating such a excellent post with us.
ReplyDeleteEmbedded System Training Center in Chennai | Embedded Training Institute in Velachery | Embedded Online Training in Velachery | Enbedded Courses in Velachery
I have read your blog. Your information is really useful for beginner. information provided here are unique and easy to understand. Thanks for this useful information. This is a great inspiring article. I am pretty much pleased with your good work.
ReplyDeleteAWS Training Institute in Chennai | AWS Training Center in Velachery | AWS Certification Training in Velachery
Nice Information my sincere thanks for sharing this post Please Continue to share this kind of post
ReplyDeleteLinux Training Institute in Chennai | Linux Training Center in Velachery | Online Linux Training in Velachery | Linux Courses in Velachery
Excellent post... Thank you for sharing such a informative and information blog with us.keep updating such a wonderful post..
ReplyDeleteMicorSoft Azure Training Institute in Chennai | Azure Training Center in Chennai | Azure Certification Training in velachery | Online Azure training in Velachery
It is amazing and wonderful to visit your site. Thanks for sharing this information, this is helpful to me a lot...
ReplyDeleteCCNA Training Institute in Chennai | CCNA Training Center in Velachery | CCNA Courses in Velachery | CCNA Online Training in Velachery
Your blog is really amazing, its very informative article and useful for everyone.. Thanks for
ReplyDeletesharing such a nice post..
Java Training Institute in Chennai | Java Training Center in Velachery | Java Courses in Velachery | Java online Training in Velachery
if it is done incorrectly, one could end up in building incorrect apps without gaining the desired results and are incompatible with each other. This makes it more beneficial and safe to work with a Salesforce Lightening Developer so that one does not waste time and energy in building inappropriate apps. Salesforce training in Chennai
ReplyDeleteReally excellent blog.It is very useful for us. Thaks for for such amazing blog. Keep sharing such excellent blog.
ReplyDeletePMP Certification Center in Chennai | PMP Certification Online Training | PMP Certification Offline Training
Really wonderful blog.Thanks for sharing such excellent blog.It is very useful for us.
ReplyDeleteA+,N+ Training Institute in Chennai | A+,N+ online Training Institute in Chennai | A+,N+ offline Training Institute in Chennai
Nice information .It is very useful for all.keeping sharing such excellent blogs.It is useful for us.
ReplyDeleteJAVA Training Institute in
Chennai | JAVA Online
Training Institute in Chennai | JAVA Training Offline Institute in Chennai
Very informative blog.Thanks for sharing such a excellent blog.It is very useful for us.keep sharing
ReplyDeletesuch amazing blogs.
SELENIUM Training
institute in chennai | SELENIUM Online Training institute in chennai | SELENIUM Offline
Training institute in chennai
Really very nice blog.It is very informative and useful for everyone.Thanks for sharing a wonderful blog.
ReplyDeleteAWS Training Institute in Chennai | AWS Online Training Institute in Chennai | AWS Offline Training Institute in Chennai
Really amazing informative blog.Excellent blog with unique content.It is very useful for us.Thanks for
ReplyDeletesharing such a wonderful blog.
C and C++ Training Institute in Chennai | C and C++ Online Training Institute in Chennai | C and C++ Offline Training Institute in Chennai
Thanks for your informative blog.it is very helpful for us.keep sharing such excellent blogs.
ReplyDeletePMP Certification Training in Chennai | PMP Certification Online Training in Chennai | PMP Certification Offline Training in Chennai
Thanks for your informative blog.it is very helpful for us.keep sharing such excellent blogs.
ReplyDeletePMP Certification Training in Chennai | PMP Certification Online Training in Chennai | PMP Certification Offline Training in Chennai