Skip to main content
Nintex Community Menu Bar

get worklist item fo all user based on folio

  • January 8, 2018
  • 3 replies
  • 25 views

is there any way to get all worklist item based on folio number?

i'm using openworklist function but i only get worklist item that are assigned to the certain user.

3 replies

Forum|alt.badge.img+18
  • January 9, 2018

Are you refering to the openworklist function from the SourceCode.Workflow.Client API?  If so, this is for certain users.


For a management level view, please use the SourceCode.Workflow.Management API:


http://help.k2.com/onlinehelp/k2five/DevRef/5.0/default.htm#Runtime/WF-Manage/GlobalWorklist.html


  • Author
  • January 23, 2018

i've tried what you suggest, but i got error

Authentication Failed : -2146892976

 


Forum|alt.badge.img+18
  • January 24, 2018

Where/How are you running this code?


How is your connection string configured?


 


If you are using this:


 


SourceCode.Hosting.Client.BaseAPI.SCConnectionStringBuilder connectionString = new SCConnectionStringBuilder();
connectionString.Authenticate = true;
connectionString.Host = "localhost";
connectionString.Integrated = true;
connectionString.IsPrimaryLogin = true;
connectionString.Port = 5555;


 


This will have to be ran on the K2server as the account  with K2 Server Admin rights; since it is "localhost" and integrated=true; if this is console/.NET application app that you are testing.


 


If this code is running as a web application, are you using an application pool account?  The site authentication will likely also play a role in the authentication.


 


https://help.k2.com/onlinehelp/k2blackpearl/devref/4.7/default.htm#ConnectionStringSamples.htm