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 / Array Variables how it...
Power Automate
Suggested Answer

Array Variables how its work

(1) ShareShare
ReportReport
Posted on by 12
How array variable works in power automate
Categories:
I have the same question (0)
  • Kalathiya Profile Picture
    2,420 Super User 2026 Season 1 on at
    Hello @CU03051719-0

    Could you please share a bit more about what you’re trying to achieve with the array variable? That will help us give a context accordingly. 

    Also, you can refer below blog about Array variable. 

    https://www.dmcinfo.com/blog/16914/the-ultimate-guide-to-using-arrays-in-power-automate/

    ---------------------------------------------------------------------------
    Glad it helped 🙂
    If this fixed your issue, 
    please click “Does this answer your question?” to mark it as verified so others can find the solution easily.
    A Like 👍 is always appreciated, and I’m around if you need more help @Kalathiya
  • Suggested answer
    Riyaz_riz11 Profile Picture
    4,199 Super User 2026 Season 1 on at
    Hi,
     
    Stores Multiple Values
    An Array variable can hold many items in one variable.
     
    Example:
    ["Apple", "Orange", "Banana"]
     
     
    Initialize the Array
    Use Initialize Variable.
    Type = Array
    Value = [] ===empty array
    Add Items Using "Append to Array Variable"
    During a loop, add values one by one.
     
    Example:
    {
      "row": 1,
      "column": "freight_weight",
      "error": "Invalid value"
    }
     
    Each append creates a new item in the array.
    Use the Array Later
    After the loop, you can:
    Count items with length()
    Create an HTML table
    Send all errors in one email
    Save the array to SharePoint or a file
     
    If I have answered your question, please mark it as the preferred solution ✅ . If you like my response, please give it a Thumbs Up 👍.
    Regards,
    Riyaz
  • Suggested answer
    Valantis Profile Picture
    6,488 on at
     
    An array variable holds a list of items that you build up during a flow. Common pattern:
     
    1. Initialize Variable, type Array, value [] (empty)
    2. Inside a loop, use Append to array variable to add each item
    3. After the loop, use the array to send one email with all items, create an HTML table, or pass the data somewhere
     
    Simple example: collect all email addresses from a SharePoint list into an array, then send one email with all of them instead of sending one email per row.
     
    Useful expressions:
    - length(variables('myArray')) to count items
    - first(variables('myArray')) to get the first item
    - join(variables('myArray'), ', ') to combine all items into a comma-separated string
     

     

    Best regards,

    Valantis

     

    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/

    💼 LinkedIn

    ▶️ YouTube

  • Suggested answer
    11manish Profile Picture
    3,033 on at
    An Array Variable in Power Automate is used to store and process multiple values or records in a single variable. It's commonly used for
     
    collecting SharePoint items, Dataverse records, email recipients, attachments, API payloads, and other datasets that need to be looped through,
     
    filtered, transformed, or passed between actions.

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 460

#2
Vish WR Profile Picture

Vish WR 343

#3
David_MA Profile Picture

David_MA 249 Super User 2026 Season 1

Last 30 days Overall leaderboard