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 / Creating a list or a v...
Power Automate
Answered

Creating a list or a variable within a variable

(0) ShareShare
ReportReport
Posted on by 9

Is it possible to create a list or a variable with an appended value (such as var_%x% where x is a number that increases by 1 for each loop)

 

I think in Microsoft Flow there is an array function, but I don't think that's available on Power Automate. What I want is to be able to retrieve a value that is stored. Currently I'm using Excel to do that but a lot of times it doesn't paste or copy the values properly for whatever reason. I believe skipping Excel should solve most of my headaches in doing this but I don't know how without creating a list or an appended variable.

 

What I want to do is something like:

Set %x% as 1

Loop:

Store value in %variable_%x%% (not possible with this syntax)

Increase %x% by 1

End Loop:

 

Or to just create a list that stores a value in it, where I can retrieve the value line by line later.

Categories:
  • Verified answer
    chchchchasd Profile Picture
    9 on at

    Found out I can call a list entry by a variable by just including the variable without anything else (%list[x]%) which solves all my problems. Not sure if it's possible to append a variable to another variable, but with lists that isn't necessary (for my case anyways).

     

    https://learn.microsoft.com/en-us/power-automate/desktop-flows/variable-manipulation#variable-names

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
Mohsin Ali Profile Picture

Mohsin Ali 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard