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 / Store multiple selecte...
Power Apps
Answered

Store multiple selected value of combo box to Sharepoint List

(0) ShareShare
ReportReport
Posted on by 27
Dear All,
 
It would be appreciated if you could help. 
I am trying to store multiple selected values of a combo box (ProductLineCombo) in the Sharepoint list. 
However, none of the results of this field were transferred to SharePoint.
The setting of 'Product Line' in Sharepoint is Choice, with multiple selections allowed.
 
I tried to set it as text, but it was not working. Is there any way I can save it as text, for example, "A,B"? thank you.🙏
 
Patch(
    'Data Collection',
    Defaults('Data Collection'),
     {
        'Product Line':Concat(ProductLineCombo.SelectedItems,",")
        }
        );
Categories:
I have the same question (0)
  • Yogesh Murugan Profile Picture
    451 Moderator on at

    Try this Code :

    ClearCollect(
     SelectedProducts,
     ProductLineCombo.SelectedItems.Value
    );
    
    Patch(
     'Data Collection',
     Defaults('Data Collection'),,
     {
     'Product Line': Concat(SelectedProducts, Value & ",")
     }
    );
  • SebS Profile Picture
    4,867 Super User 2026 Season 2 on at

    @Quincy_Chan 

     

    You said the Product line is a choice column, which means You can't concat results into it.

     

    There is a specific Schema you need to follow and to achieve what You looking you need code like this

     

    Patch(
     'Data Collection',
     Defaults('Data Collection'),
     {
     Title: "Test",
     'Product Line': ForAll(
     ProductLineCombo.SelectedItems,
     {
     
     'Value': Value
     }
     )
     }
    );

     

    You notice I added Title when you create new record title is required as well

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    HI @Quincy_Chan ,

    How you set the ProductLineCombo Items property?

     

    SInce you have tried to set it as text, I suggest you refresh the data source in the Power Apps, and then I want to know how you set the Items property of the ComboBox after you change it into Text column because original Items formula does not apply after you change column type.

     
    Furthermore, I suggest you changed it into Choice column allowing multi select again and refresh the data source in the Power Apps, modify your formula as:

    Patch(
    'Data Collection',
    Defaults('Data Collection'),
    {
    'Product Line':ProductLineCombo.SelectedItems
    }
    )

     

    The above formula only works when you set the ProductLineCombo Items property with:

    Choices('Data Collection'.'Product Line')

     

     

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
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard