I have a gallery to which I added a Delete Icon, and I would like to only show that icon if the current user is the creator of the item.
For these I create a variable OnStart:
Then I added this to the Visible property for the icon:
If(IsMatch(currentUserName, ThisItem.'Created By'.DisplayName,MatchOptions.Complete), true, false)
I also tried:
If(IsMatch(currentUserName, ThisItem.'Created By'.DisplayName,MatchOptions.Contains), true, false)
I get a "Regular Expressions Must Be Constant Values" error message. Is there a better way to accomplish this?
Thanks in advance.
Go to Solution.
Can you try this formula in the icon's on visible property
I made a test and this should work
View solution in original post
Learn how to create your own user groups today!
Check out the new Power Platform Community Connections gallery!
Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.