Hi all,
I want to display a edit button in a gallery only if the logged in user is the same as the assigned to value within the SharePoint list behind.
I store the user in a variable at "on start".
I "Visible" property look for the button looks following:
If(varLoggedInUser = ThisItem.'Assigned to',true)
The error message is something like:
Can´t compare text with records.
So I know what the problem is but I don´t know how to solve it.
Does anybody of you has a solution?
Hey! you just to check if the variable is the same of that item Assigned To.Email
Something like: var.Email = ThisItem.AssignedTo.Email
Hi @xxYYxx ,
Could you please share the assignment of varLoggedInUser and Gallery items property because it seems you are comparing text value with record.
If Assigned to is people picker column chances are it will be a record.
@xxYYxx ,
Assuming that 'Assigned to' is a People type column, use on Visible property:
varLoggedInUser.Email = ThisItem.'Assigned to'.Email
Hope it helps !
WarrenBelz
146,601
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,942
Most Valuable Professional