Skip to content

Instantly share code, notes, and snippets.

@iorionda
Created February 18, 2016 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iorionda/6dde15451cec2bd2e41e to your computer and use it in GitHub Desktop.
Save iorionda/6dde15451cec2bd2e41e to your computer and use it in GitHub Desktop.
import jsforce from 'jsforce';
var conn = new jsforce.Connection({'loginUrl': 'salesForceURL'});
conn.login('username', 'password+securityToken', function(error, userInfo) {
if (error) {
return console.log(error);
}
conn.sobject('Account').find({}).execute(function(error, records) {
if (error) {
return console.log(error);
}
console.log(records);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment