sf-ajaxtoolkit
v0.1.1
Published
sf-ajaxtoolkit
Downloads
6
Maintainers
Readme
sf-ajaxtoolkit
Salesforce AjaxToolkit adapted for use with Node.js on Heroku
Install
npm install sf-ajaxtoolkit
Usage
var sforce = require('sf-ajaxtoolkit');
sforce.connection.login('https://test.salesforce.com', 'username', 'password', function(err) {
if (err === undefined)
{
sforce.connection.describeSObject("Account", function(result)
{
console.log(result);
});
sforce.connection.describeSObjects(["Account", "Opportunity"], function(results)
{
console.log(results);
});
sforce.connection.getUserInfo(function(results)
{
console.log(results);
});
}
}
Environment Variables
AJAXTOOLKIT_VERSION
Use this to specify a different version of Salesforce Api's with the toolkit.