Difference between revisions of "Task getTasksByParentResourceId"
Nguyenduyan (talk | contribs) (Created page with "Category:Task_Functions {{HelpFiles}} = Task_getTasksByParentResourceId = Get all task under a resource == Syntax == Task_getTasksByParentResourceId (parentRId); ==...") |
Nguyenduyan (talk | contribs) (→Task_getTasksByParentResourceId) (Tag: visualeditor) |
||
Line 5: | Line 5: | ||
= Task_getTasksByParentResourceId = | = Task_getTasksByParentResourceId = | ||
− | Get all | + | Get all tasks under a resource |
== Syntax == | == Syntax == | ||
Line 15: | Line 15: | ||
== Return type == | == Return type == | ||
− | Array of tasks object | + | Array of [[Task new|tasks object]] |
== Example == | == Example == |
Latest revision as of 07:59, 16 October 2017
Task_getTasksByParentResourceId
Get all tasks 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 ]);
}