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 / Parse for multiple con...
Power Automate
Unanswered

Parse for multiple content objects

(0) ShareShare
ReportReport
Posted on by 19

Hello,

 

I want to convert some different data types from array to string in order to filling a Sharepoint list, but I can't parse the second object, only the first. This is my output:

 

parse_logs.png

 

and this is my part of flow:

 

parse_image.png

My code is:

 

{
"type": "array",
"items": {
"type": "string",
"properties": {
"Culorile alese": {
"type": "string"
},
"Business": {
"type": "string"
}
}
}
}

 

Do you know what where I made the mistake?

Categories:
I have the same question (0)
  • creativeopinion Profile Picture
    10,508 Moderator on at

    @Captainclaw Can you provide a bit more insight? It sounds like you have a multi-choice field that you are looking to add as a string into a text field in SharePoint. Is that correct?

  • Captainclaw Profile Picture
    19 on at

    @creativeopinion  that is correct

  • creativeopinion Profile Picture
    10,508 Moderator on at

    @Captainclaw 

    Get the Multi-Choice Field Key

    In your previous flow run, view the body outputs from the form response. Locate the key (red text between the double quotes) for your multi-choice field and copy that text to your clipboard.

    creativeopinion_0-1694300986291.png

     

    Convert the Multi-Choice Field String to JSON

    Add a Compose action and expression to parse the JSON. Start off with a question mark, square brackets and single quotes

    ?['']

    Paste the key from your clipboard between the single quotes. Mine looks like this (yours will be different)

    ?['r7ee873b61d10400c8280a445657a31ae']

    creativeopinion_3-1694301264404.png

     

    Place your cursor at the start of the expression. Tip: Press the up arrow key.

    Click on the Dynamic Content tab and insert the body dynamic content from the Get response details action

     

    My expression looks like this.

    outputs('Get_response_details')?['body']?['r7ee873b61d10400c8280a445657a31ae']

    creativeopinion_4-1694301330660.png

     

    Place your cursor at the start of the expression and wrap everything in a json() function. Type with an opening bracket at the start of the expression.

    json ( 

    creativeopinion_5-1694301423891.png

    Place your cursor at the end of the expression. Tip: Press the down arrow key. Enter a closing bracket.

    creativeopinion_6-1694301479443.png

     

    This Compose action will output an array of the multi-choice selections.

    creativeopinion_1-1694301005720.png

     

    Add a Value Key to the Array

    If you want to map the multi-choice selections to a multi-choice column in SharePoint you need to add a value key to the array.

    Add a Select action to your flow. In the From field, insert the Outputs from the Compose action above. 

    In the Key field enter the word Value.  In the value field, enter an expression. Use the item() function to get each item from the array.

    item()

    creativeopinion_0-1694360721461.png

    To Convert the Array to a String

    If you want to map the multi-choice selections to a single line text column in SharePoint you need to convert the array to a string.

    Add a Join action. In the From field, insert the outputs from the Compose action above. In the Join with field, insert whatever separator you'd like between each selected option. 

     

    For my example I've entered a comma only.

     

    creativeopinion_7-1694301516049.png

    This is what the output will look like. Note: If you'd like a comma and a space between each item, you'll need to add the space after the comma in the Join with field.

     

    creativeopinion_2-1694301013917.png

     

    Create Item

    Add a Create Item action to your flow. In the multi-choice column drop down click on the icon to the right of the dropdown to switch the input mode.

    creativeopinion_1-1694361043535.png

    Insert the output from the Select action.

    creativeopinion_2-1694361064641.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!

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

     

  • Captainclaw Profile Picture
    19 on at

    @creativeopinion Thank you for this idea, but it's not a solution for me in this case, because in Edit Mode(Sharepoint List), the elements which came from MS Forms look different, see my image: 

     

    save_solution.png

     

    In this example, the values are not distinct, it's a singular. 

    In my previous solution, I don't met this issue, but I don't know  how to replicate for multiple columns.

  • creativeopinion Profile Picture
    10,508 Moderator on at

    @Captainclaw I may have missed something or there might have been a miscommunication. I originally asked

    It sounds like you have a multi-choice field that you are looking to add as a string into a text field in SharePoint. Is that correct?

     

    However, if you are looking to map the multi-choice selections from the form to a multi-selection column in SharePoint, then you need to use the select function and map the choices to your SharePoint list. I will update the original post with the instructions.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 664

#2
Haque Profile Picture

Haque 460

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard