Example of using actions in workload package
- Updated: 2025/04/02
Example of using actions in workload package
Use this example to understand Insert work item and Update work item actions in the workload package.
Prerequisites
- Ensure that you have the queue Owner or Participant privileges to view the list of queues in the Workload package.
- For more prerequisites details, refer Using Insert work item action: Prerequisites and Using Update work item action : Prerequisites.
- Employee ID empID
- First Name first
- Last Name last
- Performance perf
Now, if you want to add a new work item in the EmpBonus queue, use the Insert work item action and then use Update work item action to update a work item.
Procedure
- Create the required variables such as empID, first, last, perf. For details, see Create a variable.
- Go to the Automation page, click the Create icon or click an existing Task Bot to open the editor screen.
- In the Actions palette, double-click or drag the
Insert work item
action from the Workload
package.
- Click Choose to select the EmpBonus queue name from the list of queues to insert as a work item.
- Enter work item values in the work item fields.
- Click Save and run your automation.
The Set input variables window opens.
- Select the empID, first, and
last variables for which you want to supply a value and
click Confirm.
After the successful run of your automation, the work item is added to the EmpBonus queue.
See the following video to understand how Insert work item action works:
- Double-click or drag the Update work item action from the Workload package.
- In the Queue name field, enter the EmpBonus queue name to update the work items.
- In the Work item ID field, enter the work item ID that you want to update.
- In the Work item values field, select the
Record option, and click Get
structure.
Based on EmpBonus queue, the entire work item structure; key, type, and text-box for adding value is displayed.
- Click the Insert a value icon to select an existing
record variable for each entry and click Insert.
- first for First Name entry
- last for Last Name entry
- empID for Employee ID entry
- perf for Performance Factor entry
- Click Save.
When you run the automation, the Set input variables window opens.
- Enter the variable values that you want to update against the specified
Work item ID.
The EmpBonus queue is updated with the new variable values.
See the following video to understand how Update work item action works: