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 / Attachment Control Ref...
Power Apps
Unanswered

Attachment Control Refresh to show newly added content

(0) ShareShare
ReportReport
Posted on by

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? 

Categories:
I have the same question (0)
  • Manan-Malhotra Profile Picture
    621 Super User 2024 Season 1 on at

    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.

  • AnnetteM Profile Picture
    on at

    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. 

  • Manan-Malhotra Profile Picture
    621 Super User 2024 Season 1 on at

    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.

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard