web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Buttons are taking a w...
Power Apps
Unanswered

Buttons are taking a while to get activated in home page

(0) ShareShare
ReportReport
Posted on by 2,249

Veblitz_0-1671710750849.png

 

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,798 Super User 2026 Season 1 on at

    Hi @Veblitz ,

     

    I assume the DisplayMode of those buttons is set by some conditions. Since it may take some time to load the data to verify those conditions, there may be a delay in enabling those buttons.

     

    Can you please share how the mechanism works to enable those buttons to see if there is a possibility to optimise?

  • Veblitz Profile Picture
    2,249 on at

    Thanks a lot for your valuable inputs.

     

    Here is the details:

     

    I am using below code in my home screen visible property

     

    Veblitz_1-1671721281328.png

     

    Set(CheckUser1, AuthenticateHR.Run(User().Email));
    Set(
    IsVisible1,
    If(
    Lower(CheckUser1.checkaccess) = "true",
    true,
    false
    )

    )

     

    Veblitz_2-1671721421511.png

     

     

     

     

  • BCBuizer Profile Picture
    22,798 Super User 2026 Season 1 on at

    Hi @Veblitz ,

     

    Indeed first the AuthenticateHR flow has to run before the button is enabled. I'm not sure how this flow works, but perhaps you can look into alternatives there. An idea may be to move this code to the App.Onstart property so it only triggers once when starting the app instead of every time the user goes to this screen.

     

    Also, the IsVisible1 variable is redundant. You can achieve the same result by setting the Button.DisplayMode property to:

    If(CheckUser1,Edit,Disabled)

    After this change you can delete all but the first line of your current code.

  • Veblitz Profile Picture
    2,249 on at

    I modified as per your inputs and below is the error I am facing with

    Veblitz_2-1671726243778.png

     

     

    Veblitz_1-1671726191328.png

     

     

     

     

  • BCBuizer Profile Picture
    22,798 Super User 2026 Season 1 on at

    Hi @Veblitz ,

     

    Apologies, try:

     

    If(Lower(CheckUser1.checkaccess)="true",Edit,Disabled)
  • Veblitz Profile Picture
    2,249 on at

    Myflow details

     

    Veblitz_3-1671726388264.png

    Veblitz_8-1671726634834.png

     

     

    Veblitz_4-1671726423228.png

     

    expression in condition

    Veblitz_5-1671726474162.png

    Veblitz_6-1671726495264.png

     

  • Veblitz Profile Picture
    2,249 on at

    Error got fixed

     

    But still buttons are taking a while to get activated

    Veblitz_0-1671727029907.png

     

  • BCBuizer Profile Picture
    22,798 Super User 2026 Season 1 on at

    Hi @Veblitz ,

     

    It takes a while for the flow to complete, hence the delay. 

     

    May I ask what information is retrieved from SharePoint? Perhaps there's a faster alternative that can be done from Power Apps itself.

  • Veblitz Profile Picture
    2,249 on at

    Actually,  I got SharePoint HR groups and whoever got access to HR SharePoint group then they should access home page button

     

    Home page consists of Add details button and HRdashboard so basically if Hr logins then those buttons should be visible

  • BCBuizer Profile Picture
    22,798 Super User 2026 Season 1 on at

    Hi @Veblitz,

     

    In that case this tutorial provides another option which will be much faster where you can check if the current user is member of a sharepoint group: https://www.youtube.com/watch?v=dIzOAbMjN7g

     

    If you set this up, you can get rid of the flow and reduce the delay in button activation considerably.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 408

#2
timl Profile Picture

timl 340 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 319

Last 30 days Overall leaderboard