
Hello all,
I am struggling with the following:
I have a gallery which has a filter like this, which works fine.
SortByColumns(
Filter(
Office365Users.SearchUser({top: 999}),
!IsBlank(Department)
),
"Department",
Descending
)Now in the OnSelect of the gallery I wish to Patch the Name, Image and Department to Sharepoint. However, it seems like it is not liking the fact that I send the Image with it. In the OnSelect I have this:
Patch(
'Attendance Registration',
{
Title: ThisItem.GivenName & " " & ThisItem.Surname,
Department: ThisItem.Department,
Registered: "Yes",
Photo: Office365Users.UserPhoto(ThisItem.Id)
}
)
@Anonymous
You cannot send/set an image in SharePoint like that.
If you want the user photo...you can set a field in your list which would be a person column with the user that you want. That field will then have a photo associated with it automatically.
I hope this is helpful for you.