Skip to main content
Nintex Community Menu Bar
Solved

Retrieving the worklist with delegated tasks

  • Nov 14, 2019 10:43 AM UTC
  • 3 replies
  • 120 views
  • Translate All

Forum|alt.badge.img+2

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?

Best answer by Dumisani

Hi @ @Sulzanoks


 


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

View original

3 replies

  • Nov 14, 2019 12:07 PM UTC

Good day   @Sulzanoks


 


 


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.


 



Kind regards,


Dumisani


 


 

Translate

Forum|alt.badge.img+2
  • Author
  • Nov 14, 2019 1:01 PM UTC

Hello  @Dumisani ,

 


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

Translate

  • Answer
  • Nov 14, 2019 2:00 PM UTC

Hi @ @Sulzanoks


 


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

Translate