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 / Is it not possible to ...
Power Apps
Answered

Is it not possible to attach files in Sharepointlist using Patch?

(0) ShareShare
ReportReport
Posted on by 153

I have read some articles which says its not possible to attach files to sharepointlist using Patch. Is it true? If this feature is missing its a huge drawback, when all different kinds of fields can be patched why not attachments?

Categories:
  • WarrenBelz Profile Picture
    156,730 Most Valuable Professional on at

    Hi @addy2019 ,

    No - it is not unfortunately.

    You can however possibly do it with Power Automate, but is far more complex and depends on what you are trying to attach and where you are getting it from.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @addy2019 :

    In theory, using form control and submitform function is the only way to add attachments to existing records in a canvas app.

    If you insist on using Patch function------as an alternative solution, you could consider take a try to only add the Attachments field within the Edit form. I have made a test on my side, please take a try with the following workaround:

    1.JPG2.JPG

    Set the OnSelect property of the "Submit" button to following formula:

    Patch(
    '20180921_case2', /* <-- My SP List */
    Defaults('20180921_case2'),
    {Title:"PowerApps3",TaskName:"Task3",NoOpportunity:true,NoOpp_PostSales_x0020_:true},
    EditForm1.Updates
    )

    Note: The Editform1 represents the Edit form control within your app, which only display the Attachments field. 

    Please also check and see if the following thread would help in your scenario:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Need-to-add-Attachment-to-a-PATCH-to-a-Share...

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Saving-attachments-using-Patch/td-p/277984

    Best Rergards,

    Bof

  • addy2019 Profile Picture
    153 on at

    EditForm1.Updates represents whole form & there could be other fields as well. That would be a workaround. For now I'm going with SubmitForm() workaround (with only attachment as one field present in the form).  Not sure if there's already any progress in this function by Microsoft but I'm submitting an idea anyway for it please vote if you feel we should be able to Patch the attachment fields.

     

    Patch Attachment fields not possible - Power Platform Community (microsoft.com)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard