从SalesForce Marketing Cloud批量删除脚本所有联系人和MobileConnect

时间:2019-03-26 14:21:13

标签: salesforce-marketing-cloud

我想知道ho是要从SFMC中的MobileConnect进行批量删除,还是要从电子邮件渠道的所有联系人中删除联系人。

我在帮助页面上找到了该脚本,但是我不知道如何适应自动化需求(从移动联系人和所有联系人中删除联系人ID)

Host: https://YOUR_SUBDOMAIN.rest.marketingcloudapis.com
POST /contacts/v1/contacts/actions/delete?type=keys
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN

{
    "ContactTypeId": 0,
    "values": [
        "TEST_317-531-5555", "TEST_317-531-5556"
    ],
    "DeleteOperationType": "ContactAndAttributes"
}

示例响应

{
  "operationInitiated": true,
  "operationID": 2,
  "requestServiceMessageID": "21d0d10d-a15a-413c-bc3e-8b43b185e551",
  "resultMessages": [],
  "serviceMessageID": "acb87f67-ec49-42af-a0bb-987ac6451560"
}

0 个答案:

没有答案