@gve/salesforce
v0.6.4
Published
Query and update Salesforcewith built-in retries
Downloads
13
Readme
Salesforce
Query and update Salesforce with built-in retries.
Installation
Install with npm.
npm i @gve/salesforce
Usage
const { Salesforce, DirectAdapter } = require("@gve/salesforce");
const adapter = new DirectAdapter("<USERNAME>", "<PASSWORD>", "<URL>");
const salesforce = new Salesforce(SALESFORCE_URL, adapter);
salesforce
.login()
.then(() => {
console.info("Salesforce connected");
})
.then(() => {
const users = await salesforce.users.get("<Salesforce User ID>");
console.log(users);
})
.catch((error) => {
console.error("Salesforce not connected");
debug(error.message);
});