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

Array creation

(1) ShareShare
ReportReport
Posted on by 83
How to create array in power automate and also how to use in conditional 
I have the same question (0)
  • Verified answer
    Riyaz_riz11 Profile Picture
    4,204 Super User 2026 Season 1 on at
    Hi,
     
    There are multiple ways to create arrays:
    In Microsoft Power Automate, create an array using Initialize variable -- choose type Array--add values like ["A","B","C"].
    You can also create it using an expression: createArray('11','12','13').
    Also if you want to get it from SharePoint list or excel also use List Rows present in table and use SELECT and map column.
    To use in condition, use Condition action check like: contains(variables('YourArray'), 'A').
    If condition is true then do action, else execute different action based on whether value exists in array.
     
    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
  • Verified answer
    Haque Profile Picture
    3,653 on at
     
    What type of data you want to store in array? Here is the declaration of the array using Initialize Variable action.
     
     
    Declaration of array with 5 integer values.
     
    Declaration of array with 5 string values.
     
    We can access item from array with this expresion in Compose Varaible: 
    variables('myArrayVar')[0]
     
     
     
    Here is the output of first element of the Array variable "Power Apps"
     
    If you can want to use condtion - here is one, that says if length of the array is greater than 4, do this or do that.
     
     
     
     

    I am sure some clues I tried to give. If these clues help to resolve the issue brought you by here, please don't forget to check the box Does this answer your question? At the same time, I am pretty sure you have liked the response!
  • 11manish Profile Picture
    3,333 on at

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 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard