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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / refresh gallery from s...
Power Automate
Unanswered

refresh gallery from sql immediiate after insert

(0) ShareShare
ReportReport
Posted on by

i have developed a screen in powerapps that does inserting data from collection to SQL ( using ForAll, Patch), and also delete (by using the Remove) from SQL and local collection.

 

my problem is suppose I add 4 line items locally, and then save to SQL, and immediately call the saved data to display again in the gallery, is not working in a single button (OnSelect), and adding another button to relaod the data, it is working but i need to click few times, to get the data from SQL and bind to the Gallery.

 

there are like different scenarios like 

1. adding first time locally and then save to SQL

2. retrieve data from SQL, then adding new records OR edit the SQL records and then save back to SQL

3. retrieve data from SQL, delete the saved data, then add local data, and edit / delete the local data and finally save to SQL

 

and in all this scenarios once saved to SQL, call the latest data from SQL and display in Gallery is not working consistently. All the above doing in a single screen

 

Please advise in case this can be done in different ways..thanks in advance

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Shashi_Prudent 

     

    Can you try to refresh the data source after performing the Patch operation on all items. THis can be done by adding this expression after the ForAll loop:
     
    Expression: ForAll(...); Refresh(DataSourceName) 
    
    Please replace the DataSourceName with the actual name of data source.
     
    Hope this Helps!
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Shashi_Prudent 

     

    Were you able to resolve this? 

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard