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 / PowerApps to SP Combo ...
Power Apps
Answered

PowerApps to SP Combo Box Patches the Same Value

(0) ShareShare
ReportReport
Posted on by 105

Hello!

 

I have the following data for my Patch function to SharePoint:

 

Patch('SP-CM-Test',Defaults('SP-CM-Test'),{
 Title:CardNo.Text,
 MIN:MIN.Text,
 BusinessName:BizName.Text,
 AuthorizedRep:CO.Text,
 BusinessAddress:BizAdd.Text,
 Attendee:AttendeeName.Text,
 Position:Position.Text,
 FBUserName:FBUsername.Text,
 DateAttended:DateAttended.SelectedDate,
 Merch: ForAll(
 Merch.SelectedItems,
 {
 '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
 Value: Merch.Selected.Value
 }
 ),
 TopicsTrained:{
 '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
 Value: TopicsTrained.Selected.Value
 }

});

Here are the fields:

 

Page 1:

page1sample.png

 

Page 2:

page2sample.png

Merchandise Combobox values currently are:

Merch 1

Merch 2

Merch 3

 

For some reason, when I patch the Merchandise combo box and pick more than one choice (for example, I picked Merch 1, Merch 2), it seems to only get the value of Merch 3, even though I selected two items. Please note that I used ForAll when patching.

 

Here is the screenshot in SharePoint:

 

merchsample.png

 

It acknowledges the number of choices I picked, but always defaults to the highest (?) choice tier.

Categories:
I have the same question (0)
  • Verified answer
    v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @david_castillo ,

     

    Is the Merch column a Choice type column (which enables multiple options) within your SP list? Please try below formula:

    ClearCollect(
     ChoiceCollection,
     ForAll(Merch.SelectedItems,{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",Value:Value})
    );
    Patch(
     'SP-CM-Test',
     Defaults('SP-CM-Test'),
     {
     Title:CardNo.Text,
    MIN:MIN.Text,
    BusinessName:BizName.Text,
    AuthorizedRep:CO.Text,
    BusinessAddress:BizAdd.Text,
    ... Products_x0020_2: ChoiceCollection }
    )  

    Regards,

    Mona

  • david_castillo Profile Picture
    105 on at

    It worked! Thanks a lot, Mona!

     

    For the other people to see, I retained my code but changed the Value: Merch.Selected.Value to Value:Value. It seems I misunderstood how the Value works - instead of calling the actual value, I'm calling the dropdown only.

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard