Hello, im working on a HttpClientRequest in Adobe Campaign. I've built a javascript node that will handle this. I have a succesfull response that I am able to see as a JSON object when I logInfo.
The base of the request (example):
var http = new HttpClientRequest("https://blablablac.net/CRM/Report/Test/ViewingDate?ViewingStartDate=2022-08-18T12:00:00&ViewingEndDate=2022-09-01T12:00:00&PageSize=0&PageIndex=0")
var buffer = new MemoryBuffer()
buffer.fromString("1Username1" + ':' + "password123123123123", "iso-8859-1")
http.header["Authorization"] = "Basic " + buffer.toBase64();
http.header["Content-Type"] = "text/xml; charset=utf-8";
http.method = "GET";
http.execute();
var resp = http.response;
var post = JSON.parse(resp.body);
logInfo(resp.body);
But how to I actually store the data from this response into a Adobe Campaign Schema? I want to do a for loop running through all the rows and then store each of variables from the object into my schema in adobe campaing. Can't find a good example for this.
Thanks in advanced,
Martin