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

Composing variables set in each loop

(0) ShareShare
ReportReport
Posted on by

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
    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

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard