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 : hiQ9raUclFPOhWwOS3mblK
Power Apps - Building Power Apps
Answered

SharePoint List with a Choice column that is set to “allow multiple selections”

Like (1) ShareShare
ReportReport
Posted on 3 Aug 2021 17:11:40 by 17

I have SharePoint List with a Choice column (Department) that is set to “allow multiple selections”.

I created the Power App through SharePoint using the Integrate, Power Apps, Create links and this created a Power App with the standard Browse, Detail and Edit screens.

On the Browse screen I have resolved my label issues using the Concat(ThisItem.Department,Value & ", ").

On the Detail screen it is not displaying the values, in the Combo Box, that are already in the SharePoint field for this record.

chendricks_0-1628010392293.png

 

On the Edit screen, I can choose items from my SharePoint list, in the Combo Box, but the form will not submit.

chendricks_1-1628010392299.png

 

Categories:
I have the same question (0)
  • Caz_16 Profile Picture
    82 on 03 Aug 2021 at 20:35:52
    Re: SharePoint List with a Choice column that is set to “allow multiple selections”

    So when you allow for multiple selections as you are in your SharePoint list, it is stored in the SharePoint data source a nested table. Meaning, for each record (or row) for your main table "Incident Management" in the department column is a table which contains a second list with the selected values. So you should be able to unpack that nested table using a Data Card, and the following:

    Choices([@Table].Column)


    As regard to Patch(), since you need to convert the values in the dropdown to a Table, which is then patched to the record, I recommend the following method in this post: https://powerusers.microsoft.com/t5/Building-Power-Apps/How-to-patch-main-table-and-nested-table/m-p/809085#M257987

     

    Also a note, I would recommend not having spaces in your column or table names. Use underscores ("_") instead.

     

    Caz

     

  • chendricks Profile Picture
    17 on 03 Aug 2021 at 21:43:22
    Re: SharePoint List with a Choice column that is set to “allow multiple selections”

    @Caz_16 thank you so much for the reply.
    The department card is called "Department_DataCard2" and "DataCardValue18" is already set to "Choices([@'Incident Management'].Department)" as seen in 2nd attached image, unless you are saying I need to apply this somewhere else.

     

  • Verified answer
    Caz_16 Profile Picture
    82 on 04 Aug 2021 at 12:32:41
    Re: SharePoint List with a Choice column that is set to “allow multiple selections”

    Couple of basic troubleshooting steps to try:

     

    1) Delete the data card, and re-add it to your app. Then try and read the values with your code above

    2) Remove your SharePoint Data source and re-add it to your app. (SharePoint can be touchy and lose connection to your app occasionally). 

    3) Check to make sure that the item you select on the Browse screen is being carried over to the Details screen. Usually PowerApps does this by assigning it to "ThisItem". However it is a best practice to use a global variable instead. On your Browse screen gallery, set the OnSelect property to include 

     

     

    Set(ItemSelected,ThisItem);

     

     

    Then on all your other screens use ItemSelected.Value (or whatever) to access the record. ThisItem for me has caused issues in the past. Also check and ensure all of your Select(Parent) items are correct. 

    After those steps I cant really help more without more details of your data model and your app. As you can see the Choices(_) method is working for my simple test. 

     

    Caz_16_0-1628080120696.pngCaz_16_1-1628080181315.png

     

     

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on 04 Aug 2021 at 12:43:07
    Re: SharePoint List with a Choice column that is set to “allow multiple selections”

    Hi @chendricks 

     

    On Edit Screen, please make sure the Update property is set to

     

     

     

    DataCardValuex.SelectedItems

     

     

    DataCardValueX - Replace your

     

    1. The above property is valid If you use SubmitForm(FormName).

     

    2. If you use the Patch function then the previous Update property is not valid. In this case, Attributes is a multi-select choice

     

     

    Patch(
     'Issue tracker',
     Defaults('Issue tracker'),
     {
     Title: DataCardValue9.Text,
     Attributes: DataCardValue17.SelectedItems
     }
    )

     

     

     

    StalinPonnusamy_0-1628081216541.png

     

    SP List

    StalinPonnusamy_1-1628081492117.png

     

  • Verified answer
    chendricks Profile Picture
    17 on 04 Aug 2021 at 15:55:49
    Re: SharePoint List with a Choice column that is set to “allow multiple selections”

    @Caz_16  - Deleting the card and re-adding it resolved the problem on my Detail screen.
    Thank you!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 629 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 397 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 232 Moderator

Last 30 days Overall leaderboard
Loading complete