Genpact Cora Knowledge Center

Support

GET /MessagesService.svc/GetAggregatedData

Returns the count of the following inbox items: open, unread, due today, and overdue.

Method

GET

URL

https://localhost/Flowtime/_vti_bin/Flowtime/MessagesService.svc/GetAggregatedData


Example Request

$.ajax({
type: "GET",
url: "http://server:port/_vti_bin/Flowtime/ MessagesService.svc/GetAggregatedData",
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function (data) {
alert(data)
},
error: function (error) {
console.log(error);
}
});

Response Parameters

NameTypeDescription
CurrentRowsintegerNumber of items returned.
ItemsarrayList of items returned. Each item contains properties as defined in the config file, for example {WorkflowInstance:1 ,[etc.]}.
openintegerNumber of open messages.
unReadintegerNumber of unread messages.
dueTodayintegerNumber of messages due today.
overDueintegerNumber of overdue messages.
TotalRowsintegerNumber of total items in the system.
PageSizeintegerNumber of records returned on a page.
PageNumintegerNumber of the page to retrieve records for.

Example Response

{"CurrentRows":1,
"Items":
[{
"open":20,
"unRead":5,
"dueToday":10,
"overDue":5
}],
"TotalRows":1
}