Skip to content

Commit

Permalink
Merge pull request #466 from jfgarcia268/setVlocitySetting_delta
Browse files Browse the repository at this point in the history
Added the Id in the query as that would be used while updating the custom setting
  • Loading branch information
Adam Rutland authored May 19, 2022
2 parents e095f2a + a392ce6 commit 38c616e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utilityservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ UtilityService.prototype.setVlocitySetting = async function(settingName, value)
if (this.vlocity.isOmniStudioInstalled) {
result = await this.vlocity.jsForceConnection.query(`Select Value, id from OmniInteractionConfig where DeveloperName = '${settingName}'`);
} else {
result = await this.vlocity.jsForceConnection.query(`Select ${this.vlocity.namespacePrefix}Value__c from ${this.vlocity.namespacePrefix}GeneralSettings__c where Name = '${settingName}'`);
result = await this.vlocity.jsForceConnection.query(`Select id,${this.vlocity.namespacePrefix}Value__c from ${this.vlocity.namespacePrefix}GeneralSettings__c where Name = '${settingName}'`);
}

var settingsRecord = {};
Expand Down

0 comments on commit 38c616e

Please sign in to comment.