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 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,183 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,183 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,183 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

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard