Giter Club home page Giter Club logo

Datta Mundada's Projects

jira icon jira

Python Jira library. Development chat available on https://web.libera.chat/?channel=#pycontribs

jira_requests icon jira_requests

Download bugs data from jira.atlassian.com using API. Creates .csv file and displays graph.

jirafs icon jirafs

Edit your Jira tickets using locally-stored text files in a git/hg-inspired way

joern icon joern

Open-source code analysis platform for C/C++/Java/Binary/Javascript/Python/Kotlin based on code property graphs

js-prep icon js-prep

Javascript Interview preparation code-snippets

kivi icon kivi

Lazy functional language compiler targeting LLVM.

liferay-crm-sample-integration icon liferay-crm-sample-integration

A few weeks ago I saw the post Liferay Salesforce.com integration on the Liferay forum of the year 2010. Certainly the post is a little old-fashioned and personally at that time I didn't even know about Liferay's existence. The request of Nicolas Raoul (author of the post) was this: Hello all, Is there any way to integrate Salesforce.com into a Liferay portal without writing code? If not, a solution would be to create a new portlet that calls Salesforce.com's Web Services, but I am wondering if anything already exists that I could just reuse. I am not asking for perfect integration of everything, but if you know of a portlet that shows some data or allows any Salesforce.com action that would be great already :-) Thank you! Nicolas Raoul I took the challenge in hand and throughout this article we will look at the modern approach (Liferay 7/7.1/7.2 & OSGi) of the solution I developed to integrate OSGi, Liferay 7/7.1/7.2 and Salesforce.com as bundles. [Tweet "Not sure how to integrate #Liferay 7/7.1/7.2 and #Salesforce? I'll explain how to implement integration in an OSGi context."] 1. What you need to know first All the developed software referred to is available on my GitHub account which specifically covers two repositories Salesforce SOAP API Client OSGi Bundle and Salesforce Gogo Shell Command Client. For your integration tests, remember that you must have at least one Salesforce.com Developer account (free of charge). The resources to follow are in-depth points that I recommend reading after reading this article. Introducing SOAP API Cheat Sheets Force.com SOAP API Cheatsheet Force.com Web Service Connector (WSC) The two OSGi bundles are compatible with Liferay 7/7.1/7.2 and Apache Karaf 4.x and in general can be installed in any container that complies with OSGi R6 specifications. The latest version of the Salesforce SOAP API Client OSGi bundle is publicly available on the Maven Central Repository. 2. What you need to build We are fortunate enough, we do not need a lot of effort in terms of code development. The only fundamental component to prepare is the one that will allow us to talk to Salesforce.com. The tasks to be done are: create the OSGi bundle responsible for communicating with Salesforce.com; create the OSGi bundle that will use the component above to perform actions on Salesforce.com. We have identified the "pieces of software" that we need to realize and at the end of the construction we should find ourselves in a situation analogous to that shown in Figure 1. Figura 1. Integrazione Salesforce.com in contesto OSGi The diagram in Figure 1 shows the two Salesforce SOAP API Client and My Salesforce Bundle App bundles. The first bundle is the one that will communicate with Salesforce.com through the SOAP APIs (exposed by the latter), the second bundle uses APIs instead Java exported from the first bundle in order to perform actions on Salesforce.com (such as login, account creation, etc.). 3. The Salesforce SOAP API Client bundle Salesforce.com exposes a set of APIs via SOAP and REST that allow external systems to interact with it. In this solution I chose to use the SOAP API. Salesforce.com provides the Force.com Web Service Connector (WSC) tool that creates the Java stubs needed to communicate via SOAP and this greatly facilitates the process of creating our OSGi bundle. Our OSGi bundle will show the following set of Java APIs that can then be used by any other bundle that will need to interact with Salesforce.com. com.sforce.soap.partner.* com.sforce.soap.enterprise.* com.sforce.async.* come.sforce.bulk.* com.sforce.ws.* In the article How to Build a Salesforce SOAP API Client OSGi Bundle you can read all the details related to the construction of the OSGi bundle responsible for communication via SOAP with Salesforce.com and for exporting the Java APIs that will then be publicly available within the OSGi container. 4. The Salesforce App bundle Once we have the Salesforce.com Java API available in our OSGi container (thanks to the salesforce-client-soap v1.2.0 bundle we created earlier), we are able to implement all the integrations we want with Salesforce.com. As an example application, and for reasons of simplicity, we could make a series of OSGi commands that perform the following actions on Salesforce.com: salesforce:login: Login on Salesforce.com salesforce:createAccount: Create an account salesforce:getNewestAccount: Return the list of the new account Article Liferay 7 Salesforce.com Gogo Shell Command Client explains in detail the implementation and use of this specific example integration bundle with Salesforce.com. The two videos published on Antonio Musarra's Blog YouTube Channel show the integration solution in the Liferay 7 and Apache Karaf context in action. 5. The next step Thanks to the OSGi approach we have been facilitated in implementing the solution to the integration problem between Liferay and Salesforce.com. The solution of creating an OSGi Salesforce SOAP API Client bundle responsible for communication via SOAP with Salesforce.com and exporting the Java API in the context of the OSGi container, makes this component very "reusable" (in fact we installed on Liferay and Apache Karaf) . The next scenario of integration could be similar to what I had a few years ago illustrated in the article Introduction to the Hook - First episode, where, however, the CRM system was SugarCRM, in this new scenario it will be Salesforce.com instead. I would like to receive your comments regarding the solution adopted.

merchello icon merchello

Merchello is an open source e-commerce package for the Umbraco CMS

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.