How to add support for extended fields when calling Marketing Cloud contact to create API
Requirements: the extension field "Wechat ID" is the extension field I created. I want to use the contact creation API provided by Marketing Cloud to support this extension field when creating contact. In other words, I want to give the maintenance value to Extension field when I call contact create API, and after contact is created, Extension field will be populated with the value passed when API is called.
First find the technical name technical name:YY1_WECHATID_MPS of this field in the Chrome developer tool
Configure the extension fields on the Contact creation page
Create a new contact instance, maintain a value for the extension field, such as i042416, and observe the creation payload through the network tab of the chrome developer tool:
Then you can maintain the name and value of the extension field in the nodejs code according to law:
Complete source code: https://github.com/i042416/wechat/blob/master/unittest/MarketingCloud/createContact.js
For more original Jerry articles, please follow the official account "Wang Zixi":