I was able to retrieve the records from a DE in one of the SFMC account but is not working for other account. Is there something else to be included in below ssjs code?
<script runat="server">
Platform.Load("Core","1.1.5");
try{
var myDE = DataExtension.Init("ENT.TSDelete");
var data = myDE.Rows.Retrieve();
for (var i = 0; i < data.length; i++) {
var name = data[i].Name;
var customerKey = data[i].CustomerKey;
Write(name);
Write(customerKey);
}
}
catch (err) {
Write("Error Message: " + Stringify(err.message) + Stringify(err.description));
}
</script>