How to use postman to create a Contact for Marketing Cloud
How to use postman to create Marketing Cloud Contact, for this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.
First create a contact on the UI of Marketing Cloud:
Observe the HTTP request in the network tab of the Chrome developer tool:
Https://jerry.gcdemo.hybris.com/sap/opu/odata/sap/CUAN_COMMON_SRV/?sap-client=100
This request is used to read CSRF token:
Click Save, and a new HTTP post request will be sent:
Request url:
Https://jerry.hybris.com/sap/opu/odata/sap/CUAN_COMMON_SRV/ContactPersons?sap-client=100
Take a look at the important request header fields:
Enter the CSRF token obtained in step 1 into the header field in Postman, as shown in the figure:
Body:
{"CountryCode": "CN", "City": "Chengdu", "FirstName": "Jerry1", "LastName": "Wang1", "PostalCode": "610093", "RegionCode": "", "Street": "Tianfu Software Park", "HouseNumber": "Tianfu Software Park", "DateofBirth": null, "ContactPersonFacets": [{"Id": "jerry1@sap.com", "IdOrigin": "EMAIL", "Obsolete": false, "Invalid": false}, {"Id": " "IdOrigin": "PHONE", "Obsolete": false, "Invalid": false}, {"Id": "", "IdOrigin": "MOBILE", "Obsolete": false, "Invalid": false}, {"Id": "IdOrigin": "FAX", "Obsolete": false, "Invalid": false}], "IsConsumer": true, "Filter": {"MarketingAreaId": "CXXGLOBAL"}
Status code 201, which proves that the creation is successful:
You can see the successfully created contact at the front end:
This is the answer to the Contact question on how to use postman to create Marketing Cloud. I hope the above content can be of some help to you. If you still have a lot of doubts to solve, you can follow the industry information channel to learn more about it.