Created
March 27, 2017 22:06
-
-
Save angrycider/47a2727e274ef87632c115b333aeb473 to your computer and use it in GitHub Desktop.
12. Retrieve Data Extension Object ID given a Customer Key
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
//Retrieve Data Extension ObjectId | |
var options = { | |
filter: { | |
leftOperand: 'CustomerKey', | |
operator: 'equals', | |
rightOperand: 'IonThreeTesting' | |
} | |
}; | |
SoapClient.retrieve( | |
'DataExtension', | |
["ObjectID", "CustomerKey", "Name"], | |
options, | |
function( err, response ) { | |
if ( err ) { | |
// error here | |
console.log( err); | |
return; | |
} | |
// response.body === parsed soap response (JSON) | |
// response.res === full response from request client | |
console.log( response.body ); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment