cancel
Showing results for 
Search instead for 
Did you mean: 

How to update Custom Fields

SAPSupport
Employee
Employee
0 Kudos

Dear teams.

Please let me know how to update CustomFields.

I want to update the data in the contact's CustomFields from the screen. I couldn't find a way to do that. I also researched the API on the help page below, but couldn't find a way.

https://help.sap.com/docs/SAP_MARKETING_CLOUD/0f9408e4921e4ba3bb4a7a1f75f837a7/06526bdbae42455ba69a4...
https://help.sap.com/docs/SAP_MARKETING_CLOUD/0f9408e4921e4ba3bb4a7a1f75f837a7/95f2c87395bb4dda90501...
https://help.sap.com/docs/SAP_MARKETING_CLOUD/0f9408e4921e4ba3bb4a7a1f75f837a7/39e1b76b82274b5697ff6...
------------------------------------------------------------------------------------------------------------------------------------------------
Learn more about the SAP Support user and program here.

Accepted Solutions (1)

Accepted Solutions (1)

SAPSupport
Employee
Employee
0 Kudos

Dear Customer,

First of all, you need to activate the API usage in the "Odata APIs" tab of the custom fields.
You can activate the usage for Contact API Version 3 or Version 4.

https://help.sap.com/docs/SAP_MARKETING_CLOUD/13d84c47bb6749a188fd53915c256516/7a4a465413254133ba2ca...

Secondly, you can use the metadata the check the attribute name of your custom fields.
https://my******-api.s4hana.ondemand.com/sap/opu/odata/SAP/API_MKT_CONTACT_SRV;v=0004/$metadata

At last, you can put the custom fields into the payload of ContactOriginData to update the contact master data with custom field.

https://help.sap.com/docs/SAP_MARKETING_CLOUD/0f9408e4921e4ba3bb4a7a1f75f837a7/39e1b76b82274b5697ff6...

PUT ContactOriginData(ContactID='4711',ContactOrigin='SAP_HYBRIS_CONSUMER') HTTP/1.1
Content-Length: 1035
Accept: application/json
Sap-Cuan-RequestTimestamp: '2017-10-01T13:13:14'
Sap-Cuan-SourceSystemType: EXT
Sap-Cuan-SourceSystemId: HYBRIS
Content-Type: application/json

{
"OriginDataLastChgUTCDateTime" : "2017-10-01T13:13:14Z",
"FirstName" : "test",
"LastName" : "test",
"FullName" : "test test",
"YY1_Customfield_MPS" : "01234567"
}

Best regards,

SAP Product Support

Answers (0)