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 Fluid Grid Dat...
Power Apps
Answered

Refresh Fluid Grid Data After Silent Patch Update

(0) ShareShare
ReportReport
Posted on by 124

I have a long, fluid form with several data cards of different, custom, CDS sources. The main work order entity has several relationships to other entities which are represented in data tables.

image.png

 

When clicking the plus icon, the user is prompted with these options:

image.png

 

Pressing "Start DT" makes a patch function call creating a new record for a custom entity. The creation is silent as the intent is for our end users to use this in a punch-card manner: press once to start the clock, press again to end it. The record creation and updating work well, however, I am forced to close and reopen the form to get the new record. I've tried refreshing the relevant entities, but cannot get the data table to reload the new record automatically.

 

How can I get the table to refresh without manually reloading the form?

 
 
 
Categories:
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @eauerbach ,

    Could you please share more details about the formula you typed within the Items property of the Data Table at the bottom of current screen?

    Do you connect the Data Table to your CDS Entity data source directly?

     

    If you connect the Data Table to your CDS Entity data source directly, please consider add a Refresh(...) formula after your Patch formula to refresh your data source in your app.

    Please consider set the OnSelect property of the "Start DT" button to following:

    Patch(...);
    Refresh('YourCDSEntity1'); // Add this formula
    Refresh('YourCDSEntity2');
    Refresh('YourCDSEntity3');
    ...

     

    If you save your CDS Entity records into a Collection, and then connect the Data Table to the collection, please consider re-collect data from your CDS Entity into the collection within your app. Set the OnSelect property of the "Start DT" button to following:

    Patch(...);
    Refresh('YourCDSEntity1'); // Add this formula
    Refresh('YourCDSEntity2');
    Refresh('YourCDSEntity3');
    ...
    ClearCollect(Colelction1, 'YourCDSEntity1'); // Re-collect data from your CDS Entity into collections
    ClearCollect(Colelction2, 'YourCDSEntity2');
    ClearCollect(Colelction3, 'YourCDSEntity3');
    ...

     

    Please consider take a try with above solution, check if the issue is solved.

     

    Best regards,

  • emauerbach Profile Picture
    124 on at

    The formula checker gave some warnings for performance, so I'm loading filtered 'Down Times' into a variable when the screen is made visible:

    image.png

     

    Here is how the data is used for the table:

    image.png

     

    And here's the latest iteration of the function call. I've had several Refresh() calls, trying the Work Order, Down Times, and the data variable, but none add the new/updated record into the table after pressing the button. 

    image.png

  • emauerbach Profile Picture
    124 on at

    @v-xida-msft Modifed your suggestion with the final, working code below. Had to refresh the CDS object and then update the variable, so now the table shows the latest data added.

    image.png

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard