Skip to content

Commit

Permalink
Merge pull request #346 from jfgarcia268/master
Browse files Browse the repository at this point in the history
Add this.vlocity.organizationId when using session Id
  • Loading branch information
Adam Rutland authored Jan 19, 2021
2 parents ec9c552 + f6c4eb0 commit a6f5d1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/utilityservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,10 @@ UtilityService.prototype.checkLogin = async function() {
if (this.vlocity.sessionId || this.vlocity.accessToken) {
await this.getNamespace();
await this.checkRequiredVersion();
var identity = await this.vlocity.jsForceConnection.identity();
if (identity) {
this.vlocity.organizationId = identity.organization_id;
}
} else if (this.vlocity.sfdxUsername && this.vlocity.sfdxUsername != "VLOCITY_API_LOGIN") {
await this.sfdxLogin();
await this.getNamespace();
Expand Down

0 comments on commit a6f5d1b

Please sign in to comment.