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 / Refresh Gallery in Pow...
Power Apps
Answered

Refresh Gallery in Power App that interacts with Power Automate flow

(0) ShareShare
ReportReport
Posted on by 427

Hello,

I have the following gallery based on a Sharepoint List in my Power App that activates a Power Automate flow from a button:

DJanssen_0-1707489614393.png

Quite early in the flow I set the column ReleaseRequest to Yes in the Sharepoint List. I was hoping to update the button behaviour based on column:

Text property of button:

If(ThisItem.ReleaseRequest = "Yes", "Requested", "Request")

 

DisplayMode property:

If(ThisItem.ReleaseRequest = "Yes", DisplayMode.Disabled, DisplayMode.Edit)

 

I try to refresh my DataSource after 5 seconds after running the Power automate Workflow in hopes that the gallery will refresh real time and the button will update. The OnSelect of the Request button has:

OtherUser_Cancellation_DNG_PowerApp.Run(requestedOtherDocRef, User().Email);
Set(varStartTimer, true);

 And the invisible timer element has OnTimerEnd after being Started with the varStartTimer set to true:

Set(varStartTimer, false);
Refresh('Authorization Matrix');

 

However the gallery still does not refresh real time. Is there any other way to achieve this?

Categories:
I have the same question (0)
  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    @DJanssen What is 'Authorization Matrix'? Is it data source? Did you tried resetting the gallery control itself?

     

    ResetGalleryName)

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


  • DJanssen Profile Picture
    427 on at

    @ANB Yes the 'Authorization Matrix' is the data source! Thanks I will try your suggestion by adding the Reset to my Timer property. 

     

    So I tried the following on the OnTimerEnd property:

     

     

    Set(varStartTimer, false);
    Refresh('Authorization Matrix');
    Reset('CancelDoc_OtherUsersGallery');

     

     

    The Authorization Matrix is the Data Source and the CancelDoc_OhterUserGallery the gallery control itself. It did not work unfortunately. I checked the flow run time and when the ReleaseReqest is set to Yes this takes less than 1 second, so the 5 seconds timer should be enough. 

     

  • DJanssen Profile Picture
    427 on at

    I published the app to try it out when not in Play Design mode. But the gallery does not seem to refresh real time. When I navigate back and forward the button has changed but I prefer to have this update realtime. 

  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    @DJanssen Is there any output parameter that you are using for Power Automate? 

    OtherUser_Cancellation_DNG_PowerApp.Run(requestedOtherDocRef, User().Email)

    If not then as a suggestion, i would ask you if you can set output parameter to Power Automate: Example:

    ANB_2-1707492349389.png

    Get the ReleaseRequest information in this output parameter.

    Then use this parameter in Power using this:

    Set(gblvar_Output, OtherUser_Cancellation_DNG_PowerApp.Run(requestedOtherDocRef, User().Email).output)

     

    Then use this gblvar_Output for the for text and display mode of control.

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


     

  • DJanssen Profile Picture
    427 on at

    Hey @ANB ,

     

    I don't think I can use this in my case as the Power automate flow starts an Approval process which can take quite long to complete:

    DJanssen_0-1707492619834.png

    So in order for the flow to be done and return the output this could possibly take hours or days. 

  • Verified answer
    ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    @DJanssen Then Refresh of Data source should work in this case. Do this for Timer control:

    ANB_0-1707492821483.png

    OnTimerStart have below code:

     

    Refresh('Authorization Matrix');
    

     

    With this every 5 second the source will refresh. No need to reset gallery. No need to use varStartTimer.

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


  • DJanssen Profile Picture
    427 on at

    @ANB This worked! A bit puzzled why my initial approach did not work by refreshing it after 5 seconds with the OnTimerEnd property but happy to see the behaviour I need 🙂 The items now flicker every 5 seconds so I'm hoping my client will not complain about this. 

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard