How to loop through a DataTable with next/no more records logic in UiPath Maestro?

In UiPath Maestro, how can I add conditions to loop through each record in a DataTable and handle logic for ‘Next Record’ or ‘No More Records’?


@Anil_G

@Vibhor.Shrivastava if you have any idea on this?

@naveen.ch1

ideally you would use a counter and check if counter reaches rowcount of datatable

cheers

Yes, I’m generally familiar with how to do this in UiPath Studio, but I’m not sure how to achieve it in Maestro. Even Maestro Autopilot doesn’t seem capable of adding conditions syntax — it only generates flowcharts without providing options to pass them

@naveen.ch1

May I know what you are trying to achieve?

as in any scenario we mastero to group multiple agents and flows together and not create a normal flow in it

May be if you explain we can help you on how to model it

cheers

Thanks for the quick response

I’m extracting data that results in a DataTable, which I need to pass to an agent for decision-making. However, I’m unable to find the correct syntax to use the current row and other related expressions. Do you know where I can find documentation on looping concepts in UiPath Maestro?

@naveen.ch1

ideally you should be serializing it as Json and then pass the json text to agent

here is the doc

cheers