Rmuenks1
10 months agoOccasional Contributor
Salesforce API update issue
Hi Smartbear Community! I'm using the unsupported API github extension for common Salesforce API calls. I ran into an issue trying to edit/update existing ACCOUNT data. I'm using JS and have cre...
- 10 months ago
***SOLVED***
Look in the folder where you extracted the Salesforce github files when originally installing the extension for the file: \testcomplete-salesforce-extension-main\src\script.sj
Within the file is code in the this.Update logic which builds a list of fields which are considered "updateable". You can add logic to that list builder to exclude fields from the .Push when the _metadata.fields[i].name contains "__pc", or for any other condition of field names which are throwing errors when trying to perform a .Update call to Salesforce.
For Example:
Changing: if (_metadata.fields[i].updateable)
To: if ((_metadata.fields[i].updateable) && (_metadata.fields[i].name.search("__pc") < 0))
This will allow you to exclude problematic fields.