
var _this = this;
this.sfConn = new sf.Connection({
loginUrl: 'https://login.salesforce.com'
});
console.log('About to log into salesforce');
this.sfConn.login(username, password, function(error, userInfo) {
if (error) { return console.log(error); }
_this.userInfo = userInfo;
callback(error, userInfo);
});
2 réponses
Hi Jim,
I will suggest you to post this question to developer board for the quick response. This community is focused on configuration and design questions. Programming questions are best to post developer forums.
Thanks,
Pritam Shekhawat