Using Insert work item action

The Insert work item action provides you the flexibility to insert a work item to another queue as part of a bot execution.

Prerequisites

  • You must have the Queue Owner or Participant privileges to view the list of queues in the Workload package.
  • Do not attach the bot with a work item template as the bot fails when it is deployed on a Bot Runner.
  • The maximum number of characters you can insert in a work item value is 1000.
Considerations when using the Insert work item action:
  • Run the bot using one of the following options:
    • Run bot now
    • Schedule bot
    • Run with triggers
  • Use the Insert work item to manage complex workflows by configuring a bot to add work items from multiple queues.

    For example, use a bot to read a list of invoices from a .csv file and add the invoices due for payment to another bot that manages information of payments due on specific dates. The automation can be used in the scenarios where work items are part of a different system (Database, Excel) and the bot reads them and adds them to a queue or where one queue adds work items to another queue as part of data chaining.

Procedure

  1. In the Automation page, Create a bot or Edit an existing bot.
  2. In the Actions palette, double-click or drag the Insert Work Item action from the Workload package.
  3. In the Workload: Insert work item window, add parameters such as the Queue and work item values:
    1. Click Browse to select a queue name from the list of queues to insert as a work item.
    2. Click Confirm to add the queue.
    3. Start entering work item values in the work item fields.
      Note: These parameters are populated based on the work item template associated with the selected queue.
      You can also assign a variable value to these parameters by pressing the F2 key and selecting a variable name from the list.
      Tip: Use UTC format (YYYY-mm-dd 00:00:00) for Date data type.
  4. Click Save.
    The action is added to the bot.
  5. Add more data using the Insert Work Item action.
    After the required data is added, Save the bot and Check in the bot to the Public folder for further processing and deployment.