Last active
March 23, 2021 07:14
-
-
Save angrycider/02e858fd013144e1bab3b422f7dad72e to your computer and use it in GitHub Desktop.
5. Upsert row to a Data Extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//UPSERT DE | |
var co = { | |
"CustomerKey": "7254CCBC-E5F8-49B6-991E-855825DAEADD", | |
"Keys":[ | |
{"Key":{"Name":"subscriberkey","Value":"test@fakeemail.com"}}], | |
"Properties":[ | |
{"Property":{"Name":"color","Value":"purple"}} | |
] | |
}; | |
var uo = { | |
SaveOptions: [{"SaveOption":{PropertyName:"DataExtensionObject",SaveAction:"UpdateAdd"}}] | |
}; | |
SoapClient.update('DataExtensionObject',co,uo, function(err, response){ | |
if(err){ | |
console.log(err); | |
} | |
else{ | |
console.log(response.body.Results); | |
} | |
}); |
How can we upsert rows without primary key-value data extension?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is what worked for me.
@jragsdaleSFDC