on 12-20-2022 12:26 AM
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.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.