Basically I'm creating a script that retrieves all subscribers from a custom DE and unsubscribe them from the AllSubscribers. This code is going to be used inside a Script Activity which will execute daily.
The problem comes when I try to use the main function DataExtension.Init(). I've been using this method since the day I started to program in SSJS, but It doesn't work anymore.
My code:
<script runat="server">
Platform.Load("Core","1.1.1");
try{
var myDE = DataExtension.Init("ExternalKey");
var rows = myDE.Rows.Retrieve();
Write("Rows: " + rows)
}catch(error){
Write("<br>error: " + Stringify(error));
}
</script>
My DE has only 2 columns: ContactID and Email. It is non-sendable(I also tried to change it in sendable=true but nothing happend!). I also printed the object Retrieve and I noticed the method Rows.Retrieve doesn't exists anymore(the documentation do not mention this).
Are these methods still supported? Am I missing anything?