is it possible to retrieve a custom field from a certain Work Item in a document workflow context?
Maybe something like this:
Code: Select all
var workitemfield = workflowContext.getTarget().getWorkItem("id?").getCustomField("fieldID");
getTarget() delivers the module as my script is triggered in a document workflow context.