I would like to automate the process of updating statuses, emails and from names in All Subscribers list, but I would like to avoid using export/import or any AMPscript sitting outside of the Automation Studio. Instead I would like to use SSJS.
My data source is in a data extension, and from there I would like to be able to transfer the data on a reccuring basis to All Subscribers list.
I am well familiar with Automation Studio, but since I am new to SSJS, I would like to find out how to set a loop of some kind (if at all needed?) in below script and how to "set" my data extension as the source:
var subscriber = {
"EmailTypePreference": "HTML",
"Attributes":{"First Name": "Test", "Last Name": "User"}
};
var subObj = Subscriber.Init("SubKey");
var status = subObj.Update(subscriber);
Any working examples of this code would be highly appreciated.
Thanks!