Need to show the output in json format in the mashup
Hello Experts,
I retrieves information in json format using rest api service and i need to show the result in the mashup!, any idea...
I created a property of type info table called OPJ that has a datashap with few attributes that i need to retrieve from the output(json) and i use the following code:
let params = {
headers:{ "Content-Type":"application/json","Accept":"*/*","Accept-Encoding":"gzip, deflate, br","X-HP-HMAC-Authentication": "***********","X-HP-HMAC-Date": "*********","X-HP-HMAC-Algorithm": "SHA1"} /* JSON */,
url: "********************************" /* STRING */,
content: {"aaa-org-ids" : ["ed8eb542-5a5e-46b0-80bd-a1768cc43da8"],"start" : "2021-05-03","end" : "2021-05-09", "active" : "false"} /* JSON */,
};
// result: JSON
let dj = Resources["ContentLoaderFunctions"].PostJSON(params);
logger.warn(dj.length);
for(let i=0;i<dj.length;i++){
me.OPJ.AddRow({printed_date:dj.data[i].printed_date,build_unit_serial_number:dj.data[i].build_unit_serial_number, processing_station_serial_number:dj.data[i].processing_station_serial_number,
processing_station_part_number:dj.data[i].processing_station_part_number,printer_model_name:dj.data[i].printer_model_name});
}
let result = me.OPJ;
However i have the following error:

Regards,
Yous
