
Announcements
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?
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.