Skip to main content

Hi there.. K2 Five (5.2) installed.

Looking to update some javascript that generates a custom task list. I'm using /k2services/REST.svc/Worklist/Items?piDataField=true at the moment which is returning the process instance's data fields. I need these to generate a user friendly interface with process contextual information. 

 

Can I get the data fields out of  /Api/Workflow/V1/tasks? ... I don't see any reference to it in the documentation.

Hi Doug,


 


Perhaps, you can use the /tasks/{serialNumber} to obtain the worfklow's datafield.


 


Request URL: https://k2_site_name/Api/Workflow/V1/tasks/serial_number


Sample Request URL: https://k2.denallix.com/Api/Workflow/V1/tasks/6_9



 


 


I wonder why the object array from /tasks has a different construct than the singular object returned by /tasks/{serialNumber}.

Getting the data from the individual one will require a round trip to the server for each row... bummer.

 

I made a suggestion in the K2 Ideas system.


Reply