Skip to main content
Navigator | Tier 3
July 14, 2025
Solved

Looping through a List in Automation Anywhere Process Composer

  • July 14, 2025
  • 11 replies
  • 408 views

Hello Comunity ,

I am designing a business process where a main bot retrieves a list of items from a source system. I then need to iterate through this list, and for each item, I want to call a separate bot to perform a specific action.

My initial approach was to use Process Composer to orchestrate this flow. However, after the first bot returns the list, I've realized there is no direct way within Process Composer to loop through the list items and execute another bot for each item.

What is the recommended best practice in Automation Anywhere Enterprise to achieve this kind of dynamic bot execution? How can I pass a list from a parent bot and use its contents to trigger a child bot for each list item?

Best answer by Aaron.Gleason

@LAHCEN AGLAGAL All your error handling will be within your task bot. One way to handle this is to have a Boolean variable and use a Loop to contain the functionality you want to restart if it fails:

$bSuccess$ = false

Loop… While $bSuccess$ = false

Try...

   (your functions here)

$bSuccess = true    // this is set true only if it got all the way through, otherwise it’s still false

End Try

End Loop

11 replies

Cadet | Tier 2
July 23, 2026

It is much easier to see the difference when you think about Task Bots as the workers and Processes as the orchestration layer. For complicated workflows, approvals, and branching logic, when preserving context across the whole process is crucial, a process's capacity to store and refer to outputs from several execution phases is particularly beneficial. Additionally, it is far simpler to troubleshoot and expand automations than attempting to handle everything with a single Task Bot.