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 / Iterate through a Shar...
Power Automate
Unanswered

Iterate through a SharePoint List Multi-Select and run switch on each choice

(0) ShareShare
ReportReport
Posted on by 4

Hi folks

I am buidling a flow that extracts a multi-choice from a SharePoint list and would like to run a switch statement on each value.

User can select multiple options on a form saved to a list which should run a switch statement on each value to add them to a Microsoft Team.

 

I ran a Compose and then Select on the choice column which produced this output.

 

[
  "English",
  "Spanish",
  "Mandarin"
]
 
How can I have this treated that the Switch statement that evaluates each line?

Thank you in advance.
Categories:
I have the same question (0)
  • Ellis Karim Profile Picture
    11,681 Super User 2025 Season 2 on at

    Hi @HANU03 ,

     

    To examine each item or element of the array you can try the following:

    Snag_1bb80135.png

     

    Snag_1bbac7e7.png

    Snag_1bba5b23.png

     


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • Mouda Profile Picture
    4 on at

    @ekarim2020  Thanks

    I am getting an error - see the process below - Thanks again.

    Screenshot_24.png

    Screenshot_23.png

     

    Screenshot_22.png

     

  • Ellis Karim Profile Picture
    11,681 Super User 2025 Season 2 on at

    Hi @HANU03 ,

     

    Your flow looks rather complex and I think there are other factors affecting your flow. Break down flow in small steps and work through each step.

     

    In the sample flow below, I have used the Select action to select the language from the Value property:

     

    Snag_1c09d1f9.png

    I didn't use the ParseJSON function as I can use an expression to directly reference the Value property:

    Snag_1c0a1de6.png

    The Select action outputs an array of languages:

    Snag_1c0b8362.png

     

    The output of the Select action is then used in the Apply to Each loop

    ekarim2020_0-1659206929878.png

     

    This is the sample runtime:

    Snag_1c16cc8b.png

    Snag_1c17100c.png

    Snag_1c1749d9.png

    Hope this helps.

     

    Ellis

     

     

  • Mouda Profile Picture
    4 on at

    @ekarim2020 

    I tried to follow your schema, but i keep getting nested apply to each. 

  • Ellis Karim Profile Picture
    11,681 Super User 2025 Season 2 on at

    Is the Switch action working for you?

     

    Ellis

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard