I want to insert the records in my Data Extension, but instead of go each subscriber to one line, it’s going all web page text to one line
What I retrieve to add in my DE in my web page
{"Status":"OK","RequestID":"07c484ff-a64b-4633-a5ef-64556b86e905","Results":[{"SubscriberKey":"12345678","Client":null,"ListID":0,"CreatedDate":"0001-01-01T00:00:00.000","Status":"Active","PartnerKey":null,"PartnerProperties":null,"ModifiedDate":null,"ID":0,"ObjectID":null,"CustomerKey":null,"Owner":null,"CorrelationID":null,"ObjectState":null,"IsPlatformObject":false}, {"SubscriberKey":"1234","Client":null,"ListID":0,"CreatedDate":"0001-01-01T00:00:00.000","Status":"Active","PartnerKey":null,"PartnerProperties":null,"ModifiedDate":null,"ID":0,"ObjectID":null,"CustomerKey":null,"Owner":null,"CorrelationID":null,"ObjectState":null,"IsPlatformObject":false}],"HasMoreRows":false}"
What goes to my DE
Follow my code :
<script runat="server">
Platform.Load("core", "1");
var api = new Script.Util.WSProxy();
try {
var res = api.retrieve("ListSubscriber",
["SubscriberKey"],
{
Property: "ListID",
SimpleOperator: "equals",
Value: "xxxx"
}
); var aa = Platform.Function.InsertData("AutosDE",["SubscriberKey"],
[Stringify(res)]);
Write(Stringify(res));
} catch(error) {
Write(Stringify(error));
}
</script>