Quiero insertar los registros en mi extensión de datos, pero en lugar de ir a cada suscriptor a una línea, va todo el texto de la página web a una línea.
Lo que recupero para agregar en mi DE en mi página web
{"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}"Lo que va a mi DE
Sigue mi código:
<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>