DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. CRM Integration With the Big 3 in JavaScript

CRM Integration With the Big 3 in JavaScript

In this article, we explore how developers can use JavaScript along with three great open source libraries to integrate CRMs into their apps.

Gant Laborde user avatar by
Gant Laborde
·
Jan. 04, 18 · Opinion
Like (3)
Save
Tweet
Share
5.05K Views

Join the DZone community and get the full member experience.

Join For Free

CRM Integration With Salesforce, Microsoft Dynamics, and SugarCRM

As a developer, creating tools can be cathartic, because you get to make an impact that multiplies. If you’re looking to make a real impact, you’ll need to create a tool that gets used, and it might actually make you some money. CRMs are an excellent place for integrations and, fortunately, it’s not very hard to work with each CRM when you know where to look. Let’s break the resistance of turning ideas into products by going over how to integrate your software with some of the most popular CRMs on the market in the fastest way possible (if you’re still new to CRMs, take a look at this wiki page with resources on types of CRMs to get you started). Though you could use a myriad of languages, we’ll be focused on the most popular programming language in the world, JavaScript.

You might be saying, “Each of those services already has documentation on how to write integrations, why can’t I just use those?” Though you’re right, as we can’t get away from their documentation and how they define abstract concepts, you’ve probably never seen their docs. Most of the links are to external articles, as well as explaining basic ideas, like how to create JSON objects, which is far too remedial for most developers. You'll be blocked from delivering a useful integration in any reasonable time. The best resource is to go off the beaten path. The key lies in open source.

Integrating With Salesforce

Let's take a look at using JSForce.

JSForce is a well documented open source library for integrating with the vast SalesForce API. The SalesForce API is an enormous spectrum, including Analytics, Reporting, Clients, and complex pipelines. For those of you well versed in the nouns that make up SalesForce, you can find methods on each to get info. For more advanced use cases you can even query the data directly.

Example of JSForce - Logging in and performing a SQL query against your CRM:

Integrating With Microsoft Dynamics

Let's look at using DynamicsWebAPI.

DynamicsWebAPI, created by Microsoft Certified Professional Aleksandr Rogov, provides a way to integrate with Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, and Dynamics CRM Online. Though you can’t perform raw SQL, there are plenty of ways to select data, run functions, and perform actions on this CRM. You have access to all the functions you can call by name. Once authenticated with your token, it’s trivial to get helpful information.

Example of DynamicsWebAPI - Logging a TimeZone Code by calling the associated function, GetTimeZoneCodeByLocalizedName:

Integrating With SugarCRM

In this section, we'll be discussing a library named Ventana.

SugarCRM is no stranger to open source. On GitHub, they have a strong presence with tools like Thorn, and BuildingBlocks. Their API client Ventana (Spanish for Window), allows you to interact with your SugarCRM REST API.

Example of Ventana - Logging in and fetching Accounts records:

In Summary

Open source libraries allow you to take hours of research and turn it into hours of product refinement. With only a few lines of code, we can tie into a great CRM and start working with the data. A great kudos is owed to each of these libraries and their maintainers.

Customer relationship management Integration JavaScript

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Best CI/CD Tools for DevOps: A Review of the Top 10
  • Front-End Troubleshooting Using OpenTelemetry
  • What Is JavaScript Slice? Practical Examples and Guide
  • Distributed Tracing: A Full Guide

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: