SObject - gomeddo/js-sdk GitHub Wiki

Parent of all SObject objects contains methods to manipulate fields on the sObject.

Instance properties

  • id: The salesforce id of the sObject.

Instance methods

setCustomProperty

Syntax

setCustomProperty(propertyName, value)

Parameters

  • propertyName The fieldname of the custom field you want to set on this sObject.
  • value The value you want to assign to this custom field.

Description Sets a custom property on this sObject. Used to set custom or standard fields on the sObject to allow them to be sent to salesforce.


getCustomProperty

Syntax

getCustomProperty(propertyName)

Parameters

  • propertyName The fieldname of the custom field you want to get from this sObject.

Description Gets a custom property on this sObject. Used to get custom or standard fields on the sObject.

removeCustomProperty

Syntax

removeCustomProperty(propertyName)

Parameters

  • propertyName The fieldname of the custom field you want to remove from this sObject.

Description Removes a custom property from this sObject. Used to remove custom or standard fields on the sObject.