Created
February 18, 2016 10:04
-
-
Save iorionda/6dde15451cec2bd2e41e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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