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 Apps / Attachment Control Help
Power Apps
Answered

Attachment Control Help

(0) ShareShare
ReportReport
Posted on by 26

Hi all,

 

I created an App in PowerApps using a Dataverse database in my Teams environment. I need to be able to attach documents in the App, so I added the Attachment Control from a form. I am able to click on it, the file explore window comes up I am able to select a file and upload it successfully. I can see the file in the Attachment Control window, but it says “Unsaved” could you please help me?

Dca2_1-1696952088652.png

 

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,442 Super User 2025 Season 2 on at

    @Dca2 

     

    Hi. If this is a form and its in Edit mode, have you done a Patch or a form submit to save it?

    If not its just in the UI not in the back end.

     

    You need to click whatever you do now, to update your Form values in the back end. And I also assume the control is ON your form.


    If you like my answer, I would really appreciate if you please Mark it as Resolved, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Dca2 Profile Picture
    26 on at

    Hi Mike, I think you are right is just in the UI not in the back end. I have not done a patch or form submit because I don’t know how. This is my very first App 😁 Could you please briefly tell me what I need to do? Thank you 

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @Dca2,

    Have you solved your problem?

    Do you want to save attachments to Dataverse table?

     

    If so, there is a lot of preparation work to be done:

    1). You need to create a dataverse table with a custom column named AttachFile. When you create a table with file type columns, make sure to check “Enable Attachments (including notes and files”).

    vqiaqimsft_1-1696995364153.png

    2). After that, create a column inside that table with data type File so that it can only store file attachments:

    vqiaqimsft_3-1696995419727.png

    3). Now we are done with the table, let’s move on to the canvas app, keep your attachment control and add a save button, set its OnSelect as:

    Patch(TableName,Defaults(TableName),{AttachedFile:{FileName:First(DataCardValue3_1.Attachments).Name,
    Value:First(DataCardValue3_1.Attachments).Value}})

     

     

  • Dca2 Profile Picture
    26 on at

    Thank you so much for your reply Qi, so far so good. I got no errors in the code for the button but still says the file is unsaved unsaved. I am not done yet, I just wanted to thank you and to let you know about the progress. I will continue tomorrow. 

    Dca2_0-1697053921973.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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard