Using the For each work item in queue iterator
- Updated: 2024/08/20
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:
- Double-click or drag the Loop action from the Loop package in the Actions palette.
- Select the For each work item in queue option from the Iterator list.
- In the Queue name field, provide the name of the queue where you want to update the work items.
- 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
- In the Number of work items to be fetched field, provide the quantity of the work items that you want to retrieve.
- 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.
- 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.