I am just trying to find out whats my mistake in my formula
I have a gallery where there is an icon that is supposed to be visible if the current user is listed in that specific column named isDownloadedBy
my varCurrent user definition:
Set(varCurrentUser, User().Email);
here is the button that downloads the file which patches the user's email to the column. I have checked the list and what email was patched and it is all in lowercase.
ForAll(
Filter(galDownloadNDAFiles.AllItems, cbSelectFile_ADFS.Value = true),
//for each selected record, download the file
Download(
"https://xyz.sharepoint.com/sites/xyz/_layouts/15/download.aspx?" & "SourceUrl=https://xyz.sharepoint.com/sites/xyz/" & ThisRecord.'Full Path'
);
//put the email of the user who downloads the file
Patch(
'Uploads',
ThisRecord,
{
isDownloadedBy:
If(
IsBlank(ThisRecord.isDownloadedBy),
varCurrentUser,
ThisRecord.isDownloadedBy & ", "& varCurrentUser
)
}
);
)
heres my visible property formula for the icon inside the gallery.
With(
{
splitAdmins: Split(ThisItem.isDownloadedBy, ",")
},
varCurrentUser in ForAll(splitAdmins, Lower(Trim(Value)))
)
doesn't seem to work even though my email is listed in the column.