Skip to content

Commit 38c616e

Browse files
author
Adam Rutland
authored
Merge pull request #466 from jfgarcia268/setVlocitySetting_delta
Added the Id in the query as that would be used while updating the custom setting
2 parents e095f2a + a392ce6 commit 38c616e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utilityservice.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ UtilityService.prototype.setVlocitySetting = async function(settingName, value)
770770
if (this.vlocity.isOmniStudioInstalled) {
771771
result = await this.vlocity.jsForceConnection.query(`Select Value, id from OmniInteractionConfig where DeveloperName = '${settingName}'`);
772772
} else {
773-
result = await this.vlocity.jsForceConnection.query(`Select ${this.vlocity.namespacePrefix}Value__c from ${this.vlocity.namespacePrefix}GeneralSettings__c where Name = '${settingName}'`);
773+
result = await this.vlocity.jsForceConnection.query(`Select id,${this.vlocity.namespacePrefix}Value__c from ${this.vlocity.namespacePrefix}GeneralSettings__c where Name = '${settingName}'`);
774774
}
775775

776776
var settingsRecord = {};

0 commit comments

Comments
 (0)