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 with a...
Power Apps
Answered

Refresh Gallery with a resting API as a data source

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

[Gallery1]'s Items function is: PlanningTEST.GetSubVars().items whose data source is a Resting API. You can update one or more 'Current Value'(s) and Submit the changes, which also navigates to a different page. On that page, you can select 'Make More Updates' which will take you back to the previous page. How do I get Gallery1 to show the recent changes since I can't use Refresh(datasource)?

 

Thanks,

Schuyler

Categories:
I have the same question (0)
  • Verified answer
    BCLS776 Profile Picture
    8,994 Moderator on at

    You can add a variable to the Items property to encourage the gallery to refresh the items when it is toggled:

     

    Filter(PlanningTEST.GetSubVars().items, varReset)

    where varReset is normally set to true

     

    When you need a refresh of the items, toggle varReset to false and then back to true

     

    Hope that helps,

    Bryan

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I added to App OnStart:   Set(varResetGallery1, true);

    Edited Gallery1 Items:   Filter(PlanningTEST.GetSubVars().items, varResetGallery1)

    Added to 'Make More Updates' OnSelect:   Set(varResetGallery1, false); Set(varResetGallery1, true);

    Works perfectly! Thank you!!

     

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 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard