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 / How to use PATCH to sa...
Power Apps
Answered

How to use PATCH to save an attachment to CDS Entity??

(0) ShareShare
ReportReport
Posted on by 111

Does anyone know how to use PATCH to save an attachement to CDS? I was able to make this work with SharePoint in the past but having issues with CDS.

 

Thanks!

Categories:
I have the same question (0)
  • Verified answer
    v-yuxima-msft Profile Picture
    Microsoft Employee on at

    Hi @maverick17 

     

    If you want to add a attachment to  use Patch function directly, I afraid that there is no way to achieve your needs in PowerApps currently.

    If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

    https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

     

    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.DataSource:

    Entity.PNG

    2.App Test:

    Button1.OnSelect=Patch('2019attachmenttests',Defaults('2019attachmenttests'),{Name:DataCardValue7.Text},EditForm1.Updates)

    (controls' names and datasource on my side, you can change those to yours on your side)

    Patch2CDS.PNG

    usepatch.gif

     

    Hope this could be helpful.

     

    Best Regards.

    Yumia

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 400 Most Valuable Professional

#2
11manish Profile Picture

11manish 141 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard