- 使用postman修改SAP Marketing Cloud c
- SAP Marketing Cloud功能简述(五) : 销售计
- SAP Marketing Cloud Restful API
- 如何用Java代码在SAP Marketing Cloud里创建
- SAP Marketing Cloud Contact 模型的导
- SAP Marketing Cloud的Contact导入配置和
- SAP Marketing Cloud 功能概述(四)
- SAP CRM和C4C数据同步的两种方式概述:SAP PI和HC
- SAP Marketing Cloud功能简述(三) 营销活动
- 使用postman创建Marketing Cloud的Conta
Marketing Cloud里的contact主数据,创建成功后也不是所有字段都能够被修改。在Personal data区域的字段是可以被修改的。
![](https://img.haomeiwen.com/i2085791/724065950f545239.png)
比如我在“客户属性”字段里维护了一些值:
![](https://img.haomeiwen.com/i2085791/2e605aac51270c28.png)
然后点保存:
![](https://img.haomeiwen.com/i2085791/fc5d6b2722f9a072.png)
其中第二个batch操作是通过一个roundtrip读取contact模型下多个子节点的数据,和我们这个修改的场景没有关联。
使用postman进行修改:
[图片上传失败...(image-f8d40c-1558496811627)]
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
![](https://img.haomeiwen.com/i2085791/bdcd2b28f46807cf.png)
执行postman后,发现值已经更新了,修改成功
![](https://img.haomeiwen.com/i2085791/4591fe65b75a7ed7.png)
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
![](https://img.haomeiwen.com/i2085791/dcc88e58a67cac8c.png)
网友评论