Using the For each work item in queue iterator

Use the For each work item in queue iterator to update multiple work items and assign them to the Record variable.

Procedure

To use the For each work item in queue iterator in a Loop action, do the following:
  1. Double-click or drag the Loop action from the Loop package in the Actions palette.
  2. Select the For each work item in queue option from the Iterator list.
  3. In the Queue name field, provide the name of the queue where you want to update the work items.
  4. In Select work item status field, select status of the specific work item. The work items can have any of the following statuses:
    • On-hold
    • Data error
    • Failed
  5. In the Number of work items to be fetched field, provide the quantity of the work items that you want to retrieve.
  6. In the Assign the current row to this variable field, choose one of the following options to save the outcome to a variable:
    • Record: Select a record variable or create one to hold the output. The Record variable returns three fixed key values namely workitemId, workitemValues, and workitemMetadata.
      Note: The value workitemId is a Number variable type whereas workitemValues and workitemMetadata values are Record variable type.
    • Multiple variables: Select this option to store the output in multiple variables by providing the key and the variable to which the key is mapped.