Notifications
Announcements
I have a PowerApp with a screen containing a form. The Attachment Control is not part of the form, but instead just inserted on the screen. It shows a list of attachments on the selected SharePoint list. When a button is pushed on the form, I have a Patch statement that updates the SharePoint list with a status and it kicks off a PowerAutomate flow that creates a PDF document (made up of merged columns from the record) and attaches the PDF document to the selected list's attachment control. I would then like the screen to be refreshed showing the newly added attachment as a result of the flow. Do I need to create a variable to do this? Any suggestions?
Generally a when submitting a form or patch something the External tabels are refreshed.As in your case for some reason they aren't you should try the
Refresh(Table);
after the submit command. and if the data is being displayed through collection you might need to recreate the collection after the submit command in the same button.
The Patch function changes the value of a status column in addition to a few other column modifications of the SharePoint List. A PowerAutomate flow is triggered when the status column changes and it creates a PDF letter of the details from the record and updates the SharePoint list with the PDF as an attachment. The attachment control on the screen displays all attachments when the recordcount on the attachment control is > 0, however the refresh of the datasource to show ALL the attachments, including the newly added one from powerautomate, takes at least 30 seconds. I was expecting the attached file to display immediately or shortly after the flow completes. That is not the case.
Please have a look into this page
I wish to trigger a Refresh() after the Respond To... - Power Platform Community (microsoft.com)
Also you could use a timer control to refresh your data source, you can just loop the timer when you press patch and end the time on the onhidden of screen, it can continuously refresh the data source for you each sec even if you want, but i would recommend returning values from flow to refresh
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 793 Most Valuable Professional
Michael E. Gernaey 333 Super User 2025 Season 2
Power Platform 1919 268