REST Worklist service call for all user's data

  • 4 May 2015
  • 1 reply
  • 1 view

Badge +2

Hi,

 

It appears that most of the REST service methods (spceifically in my case "Worklist/Items") in K2 automatically filter the search/result to the current user's tasks etc.  I am writing some backoffice automation stuff which would need to do a global search for Process Instance of a particular folio for a particular process.

 

Is there a way of using the REST interface for global searching?  I'd prefer to stick to REST (or SyncREST) if possible over the.NET API due to it's simplicity in integrating into what we have.

 

Thanks

Peter


1 reply

Badge +5

Hi Bugmeister,

 

I believe the REST Worklist Service is based on SourceCode.Workflow.Client APi, so it is not possible to query across all Users.

 

Alternatively, you can make use of the SmartObjects REST service (http://help.k2.com/onlinehelp/K2blackpearl/DevRef/current/Content/REST_Services2.html) to query against the "Workflow Reports" > "Workflow General" > "Process Instance" SmartObject for Process Folios. 

 

 

JK.

Reply