Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

WorkItem myWorkItem.Get(id: string)

Arguments

string id
Id number of work item.

Returns

...

Remarks

Useful when there is a need to refer to some of the older work items during the current work item. Just the Id number of the older one needs to be saved and passed to the current one. For the work item previous in the workflow, this can be done using WorkItem.Previous.

Example

To access a work item later on the workflow, Id number of it is stored on the form XML while that work item was active.

Code Block
languagejs
var identifier = $Xml.Evaluate('Specific_Xpath_for_a_WorkItemId'),
    referred_item = $WorkItem.Get(identifier);

// Now referred_item can be used as a work item object:
var date = referred_item.DeadlineDate;