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 Apps / PowerApps does not sup...
Power Apps
Unanswered

PowerApps does not support "arrays" ?

(0) ShareShare
ReportReport
Posted on by 252

Hi I read in another post that this was not supported.


https://powerusers.microsoft.com/t5/PowerApps-Forum/Pass-selected-items-from-listbox-as-parameter-to-restful/m-p/7020/highlight/true#M3155

Is there a work around available?
Will support for Arrays come before GA?

Categories:
I have the same question (0)
  • Verified answer
    rgruian Profile Picture
    on at

     

    PowerApps does not support "arrays", for GA or beyond, because it cannot encourage nor accomodate random access into data. The closest data structure in PowerApps would be a single-column table. Still, it's a table, just like SQL tables for example, and as such it is not indexable by row index, i.e. there is no random access. You can think of columns as homogeneous vertical arrays of named values.

     

    The concept of tables is documented here. I encourage you to take a look and embrace them as a very powerful data abstraction.

    https://powerapps.microsoft.com/en-us/tutorials/working-with-tables/

     

    If you need to inline an "array", please use the following syntax:

     

         [ item1, item2, ... ]

     

    For example:

     

        [1, 2, 3.1415, 4.87654]

        ["hello", "world"]

     

    The schema of such constructs is a one-column table of values of a specific type, which depends on the values that show up in your column. The one and only field in each row is named "Value". Here's a possible use:

     

        Listbox1.Items = ["hello", "world", "from", "PowerApps"]

        Textbox2.Text = Listbox1.Selected.Value

     

    Another thing to note is that columns can also be obtained by slicing a table vertically. For example a table of employees with multiple columns, including "Name", "Age", "Department", could be sliced by name:

     

        Employees.Name

     

    This produces a column of text values, discarding all other fields in each row.

     

    I hope this helps.

     

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard