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?
Good day
You will have to use the WorklistCriteria object and set it up to pull in not only the current user’s list but others as well. This will pull back Shared/Delegated items for that user that come in from OOF.
- https://help.k2.com/onlinehelp/K2Five/DevRef/5.3/default.htm#Runtime/WF-Client/WL-OOF.html
- How to Open a Worklist when Out of Office is Activated
- How to set a users Out of Office Status
Kind regards,
Dumisani
Hello
You will have to use the WorklistCriteria object and set it up to pull in not only the current user’s list but others as well.
That's exactly what I've been trying to do as stated in original post. But which criteria should I pass. The documentation is not clear
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
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.