web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Nested loops - referen...
Power Automate
Unanswered

Nested loops - referencing content from a previous loop.

(2) ShareShare
ReportReport
Posted on by 4
Hi Power Automators !
 
My flow performs an initial loop to explore the rows of an Excel table that meet a certain condition. When this condition is met, my flow needs to check if a content from the Excel row matches the title of one of the planner tasks. It then performs a second loop inside the first one to check this condition. If this condition is met, the flow updates the task data with data from the Excel. Otherwise, it creates a new task in the planner. However, in my case, when I define the second condition (checking if a content from the row is equal to the task title), an error message appears indicating that the reference to the row content is null. When I add a "compose" action before and during the second loop, I understand that the reference to the Excel table doesn't work in the second loop. How can I fix this problem ?
 
Categories:
Screenshot 2024-0...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

I have the same question (0)
  • trice602 Profile Picture
    15,404 Super User 2025 Season 2 on at
    Hi,
     
    To reference content downstream that is inside a loop, the way to do this is to INITIALIZE VARIABLE at the top of your flow.  Then inside the loop in question, typically at the bottom of the loop, use SET VARIABLE.
     
    That is going to allow you to use/reference your variable's value downstream and works well.
     
     
    ------------------------------------------------


    If this was helpful, please like and/or mark as a verified answer to help others find this too!


    Always glad to help! 💯💯💯💯💯

    Tom 

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard