Skip to main content
Version: Current

Tasks.GetMyGroupOverdueTasksAsync

Description​

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

Signature [C#]​

Task<CRTasks> GetMyGroupOverdueTasksAsync(bool isInOutArgsRequired = true);

Properties​

Input​

ParameterTypeRequired / defaultDescription
isInOutArgsRequiredboolOptional; trueSpecify true if you also want to retrieve the argument value.

Output​

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

Remarks​

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

Example​

C#
public async Task GetMyGroupOverdueTasks()
{
IControlRoomContext context = LoginControlRoom();
try
{
CRTasks cRTasks = await context.Tasks.GetMyGroupOverdueTasksAsync();
foreach (CRTaskInfo taskData in cRTasks.Data)
System.Console.WriteLine("Task Name: " + taskData.Name);
}
finally
{
context.Close();
}
}
Connection helper
public IControlRoomContext LoginControlRoom()
{
string RequiredSetting(string name) => Environment.GetEnvironmentVariable(name) ?? throw new InvalidOperationException($"Set {name} before running this example.");
string serverUrl = RequiredSetting("INTELLIBUDDIES_SERVER_URL");
string userName = RequiredSetting("INTELLIBUDDIES_USERNAME");
string password = RequiredSetting("INTELLIBUDDIES_PASSWORD");
string connectionString = $"ServerUrl={serverUrl};UserName={userName};Password={password}";
IControlRoomContext context = new ControlRoomContext(connectionString);
context.Open();
return context;
}

See Get started for namespaces, configuration, and context cleanup, and SDK usage for error handling.