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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to write a nested ...
Power Automate
Unanswered

How to write a nested for loop using apply to each?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am trying to update an item in Sheet 2, that is a lookup from Sheet 1.

 

Example of Get Sheet 1 Items:
ID(Of the actual item)

10

11

12

13

 

Example of Get Sheet 2 Items:

 

Tem ID

9

10

11

12

 

I want to make it so that for every ID, if it is in Sheet 2 as a TEM ID, I update said item and clear that field. However, in my image below when I try to replace "TEM ID" with the actual dynamic content, it creates a new apply to each loop. 

 

Shyan_0-1688069981565.png

 

Categories:
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Anonymous 

     

    This occurs because TEM ID is a array/json array so click on the below highlighted option and then insert the dynamic content of TEM ID like below

    Nived_Nambiar_0-1688092450724.png

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi, I have a new issue now if you could help me with that. The inner for loop simply doesn't run.

    Shyan_0-1688134097095.png

    Shyan_1-1688134155449.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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard