show hidden tasks and get all tasks in root and all subfolders(server 2012, 2008)

Topics: Examples
May 11, 2013 at 8:07 PM
Hi,

This is very cool. I am trying to setup an example console app that will list all tasks from root and subfolders. I have come so far that is has displayed the first tasks, but I can see it excludes the hidden. It requires regex it said. ? can some please help me in getting all tasks also the hidden and maybe how to retrive all tasks beneth layers of subfolders recursively.

Thanks in advance.
Coordinator
May 12, 2013 at 4:38 PM
You must be trying to use the GetTasks method. There is an easier way. Please see the "Enumerate all tasks" sample code on the Examples page.
May 13, 2013 at 9:21 PM
I was using the GetTasks method.
Thanks, don't know why I missed that :) I have now all tasks and I can toggle if I wanna see the ones that are hidden.

I now will try to see if I can search for a task by name and list that.