Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Task getTasksByParentResourceId

From Catglobe Wiki
Revision as of 06:58, 16 October 2017 by Nguyenduyan (talk | contribs) (Created page with "Category:Task_Functions {{HelpFiles}} = Task_getTasksByParentResourceId = Get all task under a resource == Syntax == Task_getTasksByParentResourceId (parentRId); ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



Task_getTasksByParentResourceId

Get all task under a resource

Syntax

Task_getTasksByParentResourceId (parentRId);

Arguments

parentRId: number. Parent resource id (Parent of task can be one of resource type: Project, Folder, Report, Questionnaire)

Return type

Array of tasks object

Example

number parentRId = 11088827;
array tasks = Task_getTasksByParentResourceId (parentRId);
for(number i =0; i<tasks.Count; i++)
{
	print(tasks[i][TASK_NAME ]);
}