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 / Composing variables se...
Power Automate
Answered

Composing variables set in each loop

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, 

 

I initialize a variable (type string, empty initial value) outside a for each loop.

I run a for each loop in which a variable is set each time it runs a loop.

 

After the looping is done, i send an email outside of the loop, in this email i want a total list of variables. However i only get the variable of the last loop, which is logical, i just dont know how i can create a full list of all variables.

 

Pics:

 

Daniel4444_0-1620305674290.png

 

loop(

Daniel4444_1-1620305726375.png

)

 

Daniel4444_2-1620305767274.png

 

 

result; 

Daniel4444_3-1620305900566.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Solved, needed to use 'Append to string variable' instead of 'Set variable'

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard