使用postman修改SAP Marketing Cloud contact主数据

版权声明:本文为博主汪子熙原创文章,未经博主允许不得转载。 https://blog.csdn.net/i042416/article/details/90115909

Marketing Cloud里的contact主数据,创建成功后也不是所有字段都能够被修改。在Personal data区域的字段是可以被修改的。

clipboard1

比如我在“客户属性”字段里维护了一些值:

clipboard2

然后点保存:

clipboard3

其中第二个batch操作是通过一个roundtrip读取contact模型下多个子节点的数据,和我们这个修改的场景没有关联。

使用postman进行修改:

clipboard4

body字段维护以下内容:
–batch_1f7d-bd35-caed
Content-Type: multipart/mixed; boundary=changeset_8f9e-9a44-9f9e

–changeset_8f9e-9a44-9f9e
Content-Type: application/http
Content-Transfer-Encoding: binary

MERGE Consumers(‘02000A21209F1EE99CDF1A1FC9AA8065’)?sap-client=100 HTTP/1.1
Cache-Control: max-age=360
sap-contextid-accept: header
Accept: application/json
Accept-Language: en
DataServiceVersion: 2.0
MaxDataServiceVersion: 2.0
x-csrf-token: fQ2Pwfmf0K_LVYoKV9QYUw==
Content-Type: application/json
Content-Length: 215

{"__metadata":{“uri”:“https://jerry.hybris.com/sap/opu/odata/sap/CUAN_CONTACT_SRV/Consumers(‘02000A21209F1EE99CDF1A1FC9AA8065’)",“type”:“CUAN_CONTACT_SRV.Consumer”},“YY1_CustomerType_ENH”:"Jerry测试2”}
–changeset_8f9e-9a44-9f9e–

–batch_1f7d-bd35-caed–

我想修改的字段的新的值为:Jerry测试2

clipboard5

执行postman后,发现值已经更新了,修改成功

clipboard6

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

猜你喜欢

转载自blog.csdn.net/i042416/article/details/90115909