Showing results for 
Search instead for 
Did you mean: 
Not applicable

combobox selected Id property not availble in if combobox in gallery

I have a combobox in a gallery connected to data source .

when trying to patch the record to sharepoint list , i am not able to use the cmbLocation.selected.ID

cmbLocation.items =Choices([@TimeTracking].Customer)





Patch( TimeTracking, {ID: ThisItem.ID}, { TransDate: DatePicker1.SelectedDate, Location: { '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference", Id: cmbLocation.Selected.ID, Value: cmbLocation.Selected.Value}

Resident Rockstar
Resident Rockstar

Hi @Anonymous ,

As i gon through your issue.

I can see, you are using people Or Group field Type.
Please correct me if m wrong.

//Code Mentioned by you

Hope maybe you are using the people field.

So as per my understanding, you need to patch the people column.
then you need to patch like below way.

User: {
                '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
                Claims: "i:0#.f|membership|"&Lower(varCurrentUser.Email),
                DisplayName: varCurrentUser.FullName,
                Email: Lower(varCurrentUser.Email),
                Picture: varCurrentUser.Image,
                Department: "",
                JobTitle: ""



Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." - Vijay


Helpful resources

Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,986)