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.
I am Arjun from Hyderabad (India). I have been working as a software engineer from the last 7+ years, and it is my passion to learn new things and implement them as a practice. Aside from work, I like gardening and spending time with pets.