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}
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
Choices([@TimeTracking].Customer)
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: ""
}
Thanks,
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
User | Count |
---|---|
252 | |
107 | |
90 | |
51 | |
44 |