cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ursNani
Helper IV
Helper IV

Show Button Only Me

Hi 

I am Creating app that required button show only me . So i have tried Below code on visible property of button

If (User().Email="xxxxxxxxxxx@Compani.com",true, false)

 

But still not showing button . 
please help me . Thank you 

1 REPLY 1
zmansuri
Super User
Super User

It's case-sensitive. So check your output of User().Email function and then hardcode your email id. or you can do this

Lower(User().Email) = "abc@company.com"

Also you don't need to write if block. Just the above code is enough. Because it will result in boolean value

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,030)