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 Apps / SharePoint choices flow
Power Apps
Answered

SharePoint choices flow

(0) ShareShare
ReportReport
Posted on by 32

Hi all,

 

I'm trying to use a flow (triggered in PowerApps by pressing a "Submit" button) to create a new item in SharePoint. All works fine except when I try to update my choices multi-select column. I'm using a multi-select combobox with Choices() in PowerApps to select my choices but these aren't being carried through to SP.

 

Currently I am using "Ask in PowerApps" dynamic content to get the selected choices, but in the app's Submit.Run() formula it won't let me use ComboBox.SelectedItems as "text value expected instead". At the moment I've used concat to convert the choices to a string and referencing that instead, but this isn't working either. 

 

When I check my flow runs, I see that is has successfully pulled the data through as an input, but disappears when it comes to output:

Screenshot (28).png

Has anyone got any ideas?

Categories:
  • Verified answer
    Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    You are correct that you need to convert it to a string to pass it to Flow.  But once you get it inside Flow you need to convert it back to an array.  You should be able to do that using the Split() function.

     

     

  • SamEll Profile Picture
    32 on at

    Thank you for pointing me in the right direction! For anyone else struggling with this, I followed this guide https://veenstra.me.uk/2019/04/01/microsoft-flow-update-a-multi-select-choice-field-in-a-sharepoint-list/

  • J_Taylor Profile Picture
    206 on at

    While this question has already been answered, I wanted to provide some advice for anyone still attempting this post-2022, as I was. 

    I'm not sure how much has changed since 2019, but all the advice I found was not very helpful at all. In the end, I found a much simpler solution - after struggling for hours and not finding anything useful.

     

    The solution

    In Power Apps, you ultimately need to convert your SelectedItems to a JSON. I set all of this on the OnChange property.

    1. Create a collection from the SelectedItems result. 

     

    ClearCollect(colResult,COMBOBOX.SelectedItems)
    ClearCollect(colResult,Self.SelectedItems)

     

    2. Next, convert the collection to a JSON.

     

    JSON(colResult)

     

    3. [Optional] Create a variable with the result.

     

    Set(varResult, JSON(colResult))

     

    All of this can be in one line on the ComboBox OnChange property:

     

    ClearCollect(colResult,Self.SelectedItems); Set(varResult,JSON(colResult))

     

     

    This variable then is entered on your button that runs the Flow. The JSON will be passed to the Flow through this variable. I had about 10 combo-boxes / multiselect objects, so I had 10 variables.

     

    YOURFLOW.Run(varResult1, varResult2, varResult3,...)

     

     

    Now that you have completed the Power Apps side, you need to pick up the JSON in the Power Automate side. In Power Automate, the default setup causes issues. Below we can see two examples of this:

    J_Taylor_0-1667337188574.png

    I believe this was setup to help, but I did not recognise this and it caused me many issues. To fix it:

    4. "Switch to input entire array" (green highligh).

    5. Delete everything. Select inside, press ctrl-A (to select all) and then delete.

    6. In the space,

    a. select Expression,

    b. type "json()",

    c. select between the brackets/parentheses,

    d. select  Dynamic content,

    e. select your dynamic content, and

    f. select OK.

    J_Taylor_1-1667337635289.png

    Your full dynamic content should look something like below (since the dynamic content for myself was automatically created to be "Createitem_XXXXValue", with XXXX being the name of the SharePoint column. 

     

    json(triggerBody()['Createitem_XXXXValue'])

     

     

    And that is it. No extra lines, compose or variables (initialize/set) are required anywhere.

     

    This option is much easier than manually creating a JSON string or a collection line-by-line (all things I tried to do to brute-force a solution). I hope someone finds this and it saves them the hours of frustration and stress.

     

    @SamEll, if you are still active, you may consider adding this to the 'accepted solutions' so others may easily find it in the future.

     

    If I described anything incorrectly, please forgive me. I don't know much about the backend workings of Power Apps or Power Automate, or even JSONs - I'm just trying to explain what I found.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 394 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

Last 30 days Overall leaderboard