Hi there,
I am having issues using a Patch command in Power Apps.
I had it working, then added another combo box to my form, that saved multiple people (from O365) - and it stopped working.
I do this exact same thing in another app I've created, and it works great, so I copied the code and pasted it into my patch command.
It won't work, and I can't see where I may have gone wrong.
If I comment out the code to patch my Authors field (highlighted below), everything works great - when I don't have the code commented out, it errors on me.
But as I said, I copied this exact code from my other app and it works great.
Here is my patch code:
Patch(
'MySharepointList',
LookUp('MySharepointList', ID = galNotes.Selected.ID),
{ EntryDate:dtNewEntry.SelectedDate,
Comments: txtNewEntryNotes.Text,
StaffMember: {
Claims: cboUserList.Selected.UserPrincipalName,
DisplayName: cboUserList.Selected.DisplayName,
Email: cboUserList.Selected.Mail,
Picture: "",
Department:cboUserList.Selected.Department,
JobTitle:cboUserList.Selected.JobTitle
},
Authors: ForAll(
cboAuthor.SelectedItems As _Data2,
{
Claims:"i:0#.f|membership|" & Lower(_Data2.Mail),
Department: "",
DisplayName: _Data2.DisplayName,
Email: _Data2.Mail,
JobTitle: "",
Picture: ""
})
})
Thanks in advance for any help!
Amber