I have a parent gallery and child form. Connections are made in sharepoint using a ProjectID lookup from child to parent. To add a new child item I have a child form with 3 fields Title, Assigned To, and Project ID. The item will save properly associating the new child item with its parent, only if i remove the Assigned To code. But if I leave the assigned to code it will not save at all. The assigned to field is a people picker column.
Patch(
'Project Action Items',
Defaults('Project Action Items'),
{
Title: DataCardValue23.Text,
ProjectID: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: 'Project Gallery'.Selected.ID,
Value: 'Project Gallery'.Selected.Title
},
Assigned_x0020_To:{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims:Concatenate("i:0#.f|membership|",DataCardValue36.Selected.Email),
Department:"",
DisplayName:DataCardValue36.Selected.DisplayName,
Email:DataCardValue36.Selected.Email,
JobTitle:"",
Picture:""
},
}
)There are no errors being shown, it just doesnt work.
I am also having issues saving people picker column and attachments columns using the updateif function of the parent edit form. Any suggestions?