You need to sign in to do that
Don't have an account?
Murilo Garcez
I want to retrieve records from a List and update a DE, what's wrong with my code?
I tried retrieve the records from my list and then try "updateitem" with Data Extension inside
but it's not working
<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 options = { SaveOptions: [ { PropertyName: 'SubscriberKey', SaveAction: 'UpdateAdd' } ] }; var result = api.updateItem('Subscriber', { CustomerKey: "XXXXXXX-XXXXX-XXXXX-XXXXX" }, options); Write(Stringify(res)); } catch(error) { Write(Stringify(error)); } </script>My web page returns the subscribers but do not update my Data Extension, any help about my code is useful, thanks in advance!
What error it is throwing ?
Did you check the debug log?
Thanks!