Question
How to get all alerts in JSON format using REST API from InfoTable
Hello,
I created custom service to fetch InfoTable data through Rest API and tried converting the output of the INFOTABLE using INFOTABLE.toJSON() function and set the output parameter accordingly but while I am trying to access it using rest API I am not getting the output in the JSON format.
var params = {
maxItems: undefined /* NUMBER */,
onlyUnacknowledged: undefined /* BOOLEAN */,
onlyAcknowledged: undefined /* BOOLEAN */
};
// result: INFOTABLE dataShape: "AlertSummary"
var data = me.GetAlertSummary(params);
var params = {
table: data /* INFOTABLE */
};
// result: JSON
var result = Resources["InfoTableFunctions"].ToJSON(params);

