Skip to main content

Tasks.GetMyDeptOverdueTasksAsync

Description

The API gets the list of overdue tasks from the department where the current user is involved.

Signature [C#]

Task<CRTasks> GetMyDeptOverdueTasksAsync()

Properties

Output

PropertyDescription
Task<CRTasks>Returns overdue task information from the department in which the current user is involved.

Remarks

Use GetMyDeptOverdueTasksAsync API to get the list of overdue tasks information from the department where the current user is involved.

Example

C#
public void GetMyDeptOverdueTasks()
{
IControlRoomContext context = LoginControlRoom();

CRTasks cRTasks = Task.Run(() => context.Tasks.GetMyDeptOverdueTasksAsync()).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;
}