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 / Attachmentcontrol gets...
Power Apps
Unanswered

Attachmentcontrol gets emptied when running power automate flow

(0) ShareShare
ReportReport
Posted on by 302

Hello there!

I have an attachmentcontrol where I run a power automate flow that sends the document to a sharepoint folder using the  'OnAddFile'. 

Whenever I add an attachment, the attachmentcontrol gets emptied when the flow is ran. If I comment out the power automate part, the documents stack up in the attachmentcontrol. The functionally works great, but how can I avoid the attachmentcontrol from being emptied? 

Categories:
I have the same question (0)
  • Tchesco Ayih Profile Picture
    152 on at

    Hi @efeewfew, check the formula that run the flow to make sure that there is no Reset(attachmentcontrol) after the flow.

    Example: UploadDocument.Run(attachedFiles, JSONFormat.IndentFour); Reset(attachedFiles)

  • efeewfew Profile Picture
    302 on at

    Hey @Tchesco 

     

    Thank you for your response, I have looked in my code and I do not run any Reset function anywhere.

     

    I noticed some weird issue when adding a document using an IPhone, my users get navigated to the homepage everytime they add a document... this strange issue does not happen when using Android.

    So to avoid this issue, I have a navigate at the end of the OnAddFile, so navigate them back to the screen where they can add documents. This seems to empty the attachmentcontrol....

    How can I fix this strange issue?

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 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard