I have a DataExtension containing a primary key that is not an email address. I'd like to use a RESTful API that allows me to insert several rows into the DataExtension in a single request (https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/postDataExtensionRowsetByKey.htm). So I've created a DataExtension that is a modified version of the example.
Thanks to @JayantDas for help with this!
JSON payload:
[
{
"keys":{
"mypk": "12345"
},
"values":{
"Email": "[email protected]",
"LastLogin": "2013-05-23T14:32:00Z",
"IsActive": true,
"FirstName": "John",
"FollowerCount": 2,
"LastName": "Smith"
}
},
{
"keys": {
"mypk": "12347"
},
"values":{
"Email": "[email protected]",
"LastLogin": "2018-05-23T14:32:00Z",
"IsActive": false,
"FirstName": "Jane",
"FollowerCount": 3,
"LastName": "Smythe"
}
}
]