SAP Open Connectors

Update Custom Fields

When you make PATCH or POST API calls and need to update custom fields, you need to include a customFieldList and specify the ce_type.

SAP Open Connectors supports the following ce_type values:

  • SelectCustomFieldRef
  • date
  • long
  • integer
  • float
  • double
  • boolean
  • string

In addition to the your ce_type, the payload must also contain the scriptId, which is the unique identifier of the custom field. 

The following example shows how to include a customFieldListin the JSON body of a PATCH or POST request.


{
"customFieldList": {
  "customField":[
    {
        "scriptId": "custentity7",
        "ce_type":"SelectCustomFieldRef",
        "value":{
            "internalId":"1"
            }
    }
],
"customField":[
      {
        "scriptId": "custentity9",
        "ce_type":"date",
        "value": "2015-06-25T07:00:00Z"
      }
]
  }
}