I'm trying to retrieve user's task list using example documented here . The problem is I only get tasks that are assigned directly to me. I don't get any deligated/shared items. How do i get them?
Retrieving the worklist with delegated tasks
Best answer by Dumisani
Hi @
Obviously, this is not meant to be a polished production code nor have I tested this myself, however using the Developers documentation reference I have tried to interpret the WorklistCriteria filter basics into a template you can also try to use.
WorklistCriteria criteria = new WorklistCriteria();
criteria.Platform = "ASP"; //helps when multiple platform are used
criteria.AddFilterField(WCLogical.Or, WCField.WorklistItemOwner, "Me", WCCompare.Equal, WCWorklistItemOwner.Me);
criteria.AddFilterField(WCLogical.Or, WCField.WorklistItemOwner, "Other", WCCompare.Equal, WCWorklistItemOwner.Other);
// This should return OOF/Shared tasks as well.
Kind regards,
Dumisani
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.