I have this snippet that works partially (trying until 2000 records), but the automation or the cloudpage stop and finish before processing all the data; How to work with WS PROXY with the functions below? Would WS PROXY work in this case?
<script runat="server">
Platform.Load("Core","1.1.1");
var dataRows = Platform.Function.LookupRows('DENAME','Email','[email protected]');
if(dataRows && dataRows.length > 0) {
for(var i=0; i<dataRows.length; i++) {
var id = dataRows[i].Id;
var contentType = "application/x-www-form-urlencoded"
var req = dataRows[i].DataXML; // it's text data, base64 string
var url = 'https://api';
var result = HTTP.Post(url, contentType, req);
var aRes = Platform.Function.ParseJSON(result.Response.toString());
var val = aRes.pURL;
var TestDE = DataExtension.Init("..-C4D9-4036-B0FC-379A0B71FFB5");
var upDE = TestDE.Rows.Add({"Id":"RequestviaSSJS",PURL:val,Invoice:id});
}
}
</script>