web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 485Kc+eBRNQ1EAca2XvUet
Power Automate - Building Flows
Answered

Split string and maintain row integrity

Like (0) ShareShare
ReportReport
Posted on 18 Jan 2024 18:53:05 by 4

Hi

I am a newbie. I need to split a string from a multi select dropdown (Microsoft form) into single records in a Sharepoint list. Please see the attached image.

 

Thanking you in advance for your assistance.

 

Christopher

  • creativeopinion Profile Picture
    10,466 Super User 2025 Season 2 on 20 Jan 2024 at 16:39:29
    Re: Split string and maintain row integrity

    @cseewaldPAD1972  

    Select the appropriate dynamic content from the Get user profile (V2) action and insert it into the Create Item action. 

    creativeopinion_2-1705768750280.png

    Hope this helps!


    If I helped you solve your problem—please mark my post as a solution .
    Consider giving me a 👍 if you liked my response! If you're feeling generous— ️  Buy me a coffee: https://www.buymeacoffee.com/acreativeopinion

    👉 Watch my tutorials on YouTube
    👉 Tips and Tricks on TikTok

     

  • cseewaldPAD1972 Profile Picture
    4 on 20 Jan 2024 at 16:34:41
    Re: Split string and maintain row integrity

    Hi

    Before I get to the string split I need to get the users information. The department, birthday and display name for use in the Create item action. I'm not sure how to do that. Please see my progress so far in the attached image.

     

    Thanks

     

  • Akah Mandela Profile Picture
    445 on 19 Jan 2024 at 09:10:12
    Re: Split string and maintain row integrity

    Hey @cseewaldPAD1972 ! I'm happy to help you with that.

    1. Gathering Responses with a Microsoft Form:
      1. You've created a Microsoft Form to collect information from users.
      2. This form includes a "select multiple" question, where people can choose multiple options from a list. like thisScreenshot 2024-01-19 at 09.49.06.png
    2. Automating Data Processing with a Flow:
      1. You want to  set up a flow to automatically process the responses from the form.
      2. You could create an automated or manual  flow that uses the "Apply to each" action to handle each response individually iterating through the multiple options selected by the user. In the screenshot below i used an automated flow Screenshot 2024-01-19 at 09.45.40.png
    3. Breaking Down Responses with Formulas:
      1. In the "Apply to each" section, i'm using this formula:

        split(outputs('Get_response_details')?['body/123xyz'], ',')
        1. This formula splits the responses from the multiple-choice question into separate items, using commas as separators, creating a list of user selected options.

    4. Then, in the "Sports" column, of the create Item in Sharepoint list i'm using this formula:

      split(items('Apply_to_each'), '"')[1]
      1. This formula removes any extra quotation marks or commas that might have been included in the responses.

    5. You could test using your sample data and will get the expected results 

    Does that sound about right? If so, I'm glad I could clarify the steps involved! Feel free to ask if you have any more questions.

     
  • Verified answer
    creativeopinion Profile Picture
    10,466 Super User 2025 Season 2 on 18 Jan 2024 at 19:40:46
    Re: Split string and maintain row integrity

    @cseewaldPAD1972 

     

    Manual Trigger

    Start with a manually triggered flow. Depending on how many items you have in your SP List, I would recommend limiting the Top Count to a smaller number than the total number of items in your list. This will increase the speed of your flow runs. Instead of returning all items in your list—it'll limit the Get Items action to the number entered into the Top Count field.

    creativeopinion_0-1705606169459.png

    Loop through Each Item

    Insert an Apply to Each action to loop through each item returned from the Get Items action. 

     

    This next action is optional. However, since you are new it'll help you better understand what's going on in your flow. 

     

    Add a Compose action to store the Multi-Choice dynamic content. My multi-choice column is named Multi-Choice select the appropriate dynamic content in your flow.

    creativeopinion_1-1705606198791.png

    Run a test. Review the output of the Compose action. This will show you the output of the data from the multi-choice column. It's an array.

    creativeopinion_2-1705606244880.png

    Loop Through Multi-Choice Selection

    Add Another apply inside the existing apply to each action. I should mention that it's important to rename your actions to keep things organized!

     

    creativeopinion_3-1705606282312.png

     

    In the new Apply to Each action insert the Multi-Choice dynamic content (same one you inserted into the Compose action. 

     

    Add another Compose action. Again, this is optional. However it'l help you to better understand what is going on in your flow. Insert the Value dynamic content of your multi-choice column. In my case it's Multi-Choice Value

    creativeopinion_4-1705606333735.png

    Run a Test. Confirm the Compose action is displaying each multi-choice value for the current item being looped through. 

    creativeopinion_5-1705606361982.png

     

    Create an Item

    Add a Create an item action inside the nested Apply to Each action. 

    creativeopinion_6-1705606398715.png

    Each time the nested apply to each action loops through a multi-choice selection, it'll create a new item in your SP list. 

     

    For the single choice value column, select Enter Custom Value. Insert the out from the Compose action above.

    creativeopinion_7-1705606423194.png

    creativeopinion_8-1705606437848.png

    creativeopinion_9-1705606465471.png

    Run a test. 

     

    Concurrency Control

    Turn on the Concurrency Control for the nested apply to each action. By default the Concurrency control is turned off which means that the Apply to Each action loops through each item one after the other.

     

    When the concurrency control is turned on, the Apply to Each action loops through a number of items at the same time. It’s important to note that if you are using a set variable action—you should leave the concurrency control off.

    creativeopinion_0-1705607722618.png

     

    Toggle it on and increase the Degree of Parallelism.

    creativeopinion_1-1705607832637.png

     

    Run another test. See how quickly your flow runs now.

     

    Don't forget to remove the Top Count from the Get Items action. 

     

     

    If you'd like to level up your Power Automate skills check out this video: Power Automate Beginner Tips and Tricks | 5 Things You Need to Know – Part 1

    I cover the following in this video tutorial:

     Power Automate Beginner Tips and Tricks

     Why use the Manual Trigger instead of an Automated Trigger

     3 Ways a Compose Action can help you build better flows

     How to Manually Trigger a flow with a specific Date and Time

     How to return a count of items

     How to use the top count

     How to send test emails

     

    Hope this helps!


    If I helped you solve your problem—please mark my post as a solution .
    Consider giving me a 👍 if you liked my response! If you're feeling generous— ️  Buy me a coffee: https://www.buymeacoffee.com/acreativeopinion

    👉Watch my tutorials on YouTube
    👉Tips and Tricks on TikTok

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2