Connect to Salesforce with Node.js

In this post, we gonna make a connection to Salesforce with Node.js and we will update the Salesforce Objects.

We will use node-salesforce npm module to authenticate with Salesforce. So let’s install it.

Let initialize the project with npm init --yes and isntall node-salesforce as shown below.

Once you install the dependency, let create a file called index.js, file name can be anything.

update the connection settings with your salesforce details. After updating the details you can test your connection with node index.js and upon the success, you should get a response object with organizationId, id, URL.

Fetech data from salesforce

Update salesforce data

To update multiple rows, just send data in the array of objects format.

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.

0 0 vote
Article Rating
Notify of
Inline Feedbacks
View all comments Protection Status
Would love your thoughts, please comment.x