Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Loop does not give the expected result

(0) ShareShare
ReportReport
Posted on by 92

I have the following task:
I have an Excele with cases and a Lists with agents. Furthermore, I have a third data compilation with the content of the agent's name and how many cases he currently has. The maximum number of cases an employee may have comes from the lists.
Now I have a loop in which I view each case. If it meets certain criteria, the current data of the employee is loaded in a case. In a loop within the case, the employees are now run through and the case numbers are assigned in a further loop. A comparison is then made as to whether the current number of cases is smaller than the maximum number of cases. If it is smaller, something is written to Excel. That works so far. But with an error. I was expecting the data to be written to the table when there is the first match. But now it rewrites with each pass if it is smaller. I had thought about changing to a Do until loop. However, I have no idea how this works.

Andy_ger_0-1710395413566.pngAndy_ger_1-1710395447970.png

Andy_ger_2-1710395482048.pngAndy_ger_3-1710395505897.png

 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >