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 / Named Formulas: Is it ...
Power Apps
Suggested Answer

Named Formulas: Is it possible to put these Refresh Entries into a single named formula entry

(1) ShareShare
ReportReport
Posted on by 678
I want to create a named formula that does...

Refresh(Events);
Refresh(EventAirports);
Refresh(and others... );

Is there a way to wrap this in a "nfRefreshAll" named formula? If so, what's my entry. I tried a few things. Co-pilot suggested...
I pasted that into App.Formulas but it didn't work.
CombineEntries = () => {
    // Your combined entries here
    // Example:
    Refresh(Events);
    Refresh(EventAirports);
    Refresh(dictAirports);
    Refresh(dictMetroCities);
    Refresh(EventHousings);
}

 
Categories:
I have the same question (0)
  • jrletner Profile Picture
    720 Moderator on at
    You cannot use a Named Formula in Power Apps to perform actions like that.  Named formulas are designed for pure functions that return a value, not for calling imperative actions.
     
    Named Formula example:
     
    fxEvents = Events;
    fxEventAirports = EventAirports;
    fxDictAirports = dictAirports;
    fxDictMetroCities = dictMetroCities;
    fxEventHoursings = EventHousings;
     
    Now you can use the fxFormula as a source in your application.
     
    Anytime those datasources update, the formula will carry the data without having to do a refresh.
     
    However, f you need to force refrshes like that you could put that refresh code in a button for the user to refresh your data.
  • Suggested answer
    adithyaselv Profile Picture
    Microsoft Employee on at
    To create a reusable block of imperative logic like the one you have mentioned above , you can try using Behavior User-defined functions.

    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/object-app#behavior-user-defined-functions

    for example : -
    RefreshAll(): Void = {
    
    Refresh(Events);
    Refresh(EventAirports);
    Refresh(and others... );
    
    };

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 842

#2
Valantis Profile Picture

Valantis 563

#3
Haque Profile Picture

Haque 402

Last 30 days Overall leaderboard