Tasks.GetMyOverdueTasksAsync
Description
The API gets the list of overdue tasks for the current user.
Signature [C#]
Task<CRTasks> GetMyOverdueTasksAsync()
Properties
Output
Property | Description |
---|---|
Task<CRTasks> | Returns overdue tasks information for current user. |
Remarks
Use GetMyOverdueTasksAsync API to get the current users' list of overdue tasks information.
Example
C#
public void GetMyOverdueTasks()
{
IControlRoomContext context = LoginControlRoom();
CRTasks cRTasks = Task.Run(() => context.Tasks.GetMyOverdueTasksAsync()).Result;
foreach (CRTaskInfo taskData in cRTasks.Data)
System.Console.WriteLine("Task Name: " + taskData.Name);
}
C#
public IControlRoomContext LoginControlRoom()
{
IControlRoomContext context;
string connectionString;
connectionString = "ServerUrl=https://demo.onnitellibuddies.com;UserName=demoadmin;Password=password";
context = new ControlRoomContext(connectionString);
context.Open();
return context;
}