Hello! I have tried basically everything when trying to patch a person to my sharepoint list people column, by this I mean I am using the Microsoft Azure AD to patch persons to the person column on sharepoint, and consistently get a network error but I'm not sure where or why I get it. Heres all the code I've tried. I'm using a combobox to support my power app column. And I am writing this code on OnChange. I have tried so many versions at this point and I'm not sure where I'm going wrong. If anyone has any suggestions or if this is a microsoft power apps issue please let me know. Thank you!
Patch(
'2027AOCalendarCurrent',
ThisItem,
{
'AO Manager Test': {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & Lower(ComboBox1.Selected.UserPrincipalName),
DisplayName: ComboBox1.Selected.DisplayName,
Email: ComboBox1.Selected.UserPrincipalName,
Department: Blank(),
JobTitle: Blank(),
Picture: Blank()
}
}
);
Refresh('2027AOCalendarCurrent');
Patch(
colCalendar,
ThisItem,
{
'AO Manager Test': {
Claims: "i:0#.f|membership|" & Lower(ComboBox1.Selected.UserPrincipalName),
DisplayName: ComboBox1.Selected.DisplayName,
Email: ComboBox1.Selected.UserPrincipalName,
Department: Blank(),
JobTitle: Blank(),
Picture: Blank()
}
}
);
Patch(
'2027AOCalendarCurrent',
ThisItem,
{
'AO Manager Test': {
'
Claims: "i:0#.f|membership|" & Lower(
DisplayName:
Email:
Department: Blank(),
JobTitle: Blank(),
Picture: Blank()
}
}
);
//);
Refresh('2027AOCalendarCurrent');
Patch(
colCalendar,
ThisItem,
{
'AO Manager Test': {
Claims: "i:0#.f|membership|" & Lower(
DisplayName:
Email:
Department: Blank(),
JobTitle: Blank(),
Picture: Blank()
}
}
);
//NEW ATTEMPT
Patch('2027AOCalendarCurrent', First('2027AOCalendarCurrent'),
{'AO Manager Test':
{
Claims: "i:0#.f|membership|" &
Department:"",
DisplayName:
Email:
}
}
);