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 / Unable to build array ...
Power Automate
Unanswered

Unable to build array for multiple checkbox selection Sharepoint list item

(0) ShareShare
ReportReport
Posted on by 4

I'm trying to take a Sharepoint List I've created that contains 2 columns with multiple text selections from a drop-down and send the results in an email. I've found that Power Automate can't handle this. I spent a good deal of time researching how to initialize and append to an array variable so I can output these values. After about 1-2 hours of trial & error troubleshooting I can't seem to figure out how to do this.

 

Screenshots:

 

Multiple selection items in the SharePoint List:

eferreira7_1-1631800802660.png

 

Column settings in SharePoint:

eferreira7_2-1631800937000.png

 

 

Error from Flow:

eferreira7_0-1631800752779.png

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,870 Most Valuable Professional on at

    Hi @eferreira7,

     

    You could use a Select action and a join function for this.

     

    Below is an example of that approach.

     

    1. Add a Select action. Use the Build Selection Array in the From field. Use the following expression in the Map field (Switch Map to Text mode) 

    item()?['Value']

     

    selectaction_join.png

     

    2. In the Send an email (v2) use the following expression. This will separate the items with a space character.

    join(body('Select'), ' ')

    You could also use a comma

    join(body('Select'), ',')

    joinbody02.png

  • eferreira7 Profile Picture
    4 on at

    Gave that a shot. That only works with Strings and not arrays.

     

    Error:

    The 'from' property value in the 'select' action inputs is of type 'String'. The value must be an array.

     

    eferreira7_0-1631805007415.png

     

     

  • Expiscornovus Profile Picture
    33,870 Most Valuable Professional on at

    Hi @eferreira7,

     

    Can you test it without the apply to each. That action is not needed for this solution approach.

     

    select_withoutapplytoeach.png

  • eferreira7 Profile Picture
    4 on at

    Unfortunately, that's not an option. The moment you select that Variable (array) it automatically encapsulates in an "Apply to Each". 

  • Expiscornovus Profile Picture
    33,870 Most Valuable Professional on at

    Hi @eferreira7,

     

    To avoid that apply to each you could use an expression instead of selecting the dynamic content field.

     

    buildselectionarray.png

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard