Read and Review Automation Anywhere Documentation

Automation Anywhere IQ Bot

Close Contents


Open Contents

Upload multiple files with IQ Bot using Loop action

  • Updated: 11/05/2021
    • 11.3.x
    • Build
    • IQ Bot

Upload multiple files with IQ Bot using Loop action

You can upload multiple files by adding a Loop action to the Upload Document action in the Bot editor.


Follow these steps to upload multiple documents:

  1. In the Actions palette, double-click or drag the Loop action from the Loop package.
  2. In the Loop Type field, select the Iterator option.
  3. In the Iterator field, select For each file in folder from the drop-down list.
  4. In the Folder path field, select the folder path.
  5. In the Assign file name and extension to this variable field, specify the variable name and value.
    For example, if the variable name is filename, this variable is used to store file names of the chosen folder. Select the value filename - Dictionary of Strings.

    See Dictionary package .

  6. Click Apply.
  7. In the Actions palette, double-click or drag the Upload Document action from the IQ Bot package.
  8. Complete the information, except the File Path field.
  9. In the File path field, enter a dynamic file path using a variable.
    1. Add a file path pointing to the folder: C:\input\.
    2. Add the dynamic file name string: $filename(name)$.$filename(extension)$.

    The name and extension keys are predefined. When inserted and run in a loop, the action iterates through the entire folder and calls all files in the folder one at a time. The File path value looks like this: C:\input\$filename(name)$.$filename(extension)$

  10. Click Apply.
  11. Click Save.

Next steps

To read results from variable, use the Message box action.
Send Feedback