cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Patch Attachments to an Existing file

Hello,

 

I am looking for a way to patch attachments to an exisiting file in PowerApps. Basically, my form has the option for a user to "save as a draft" and return to it later. I would like to implement the functionality for them to be able to add additional attachments when they return to their draft, but am unsure of the proper syntax to do so. Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Patch Attachments to an Existing file

Your welcome.

 

I actually was figthing this a month ago and was not able to find any descent solution. Bouncing over a Flow may help, but it didnt go down that road at that time.

 

If i find some spare time I may test it again as it would be super useful!

View solution in original post

7 REPLIES 7
Highlighted

Re: Patch Attachments to an Existing file

Hello,

 

What is your datasource/connector?

Anonymous
Not applicable

Re: Patch Attachments to an Existing file

Sorry - forgot to mention it. It's a SharePoint list

Re: Patch Attachments to an Existing file

Ok, that is quite easy.

 

Use the Patch function.

 

Here is a similiar discussion: https://powerusers.microsoft.com/t5/General-Discussion/PowerApps-Updating-fields-of-a-sharepoint-lis...

 

Let me know if it helps you or not!

Anonymous
Not applicable

Re: Patch Attachments to an Existing file

Yeah... I have tried patch. I don't know the syntax for attachments to a SP list. My datasource is "GiftofSecuritiesForms"; SessionID is a variable that matches the current form's ID. I tried Patch(GiftOfSecuritiesForms, First(Filter(GiftOfSecuritiesForms, ID = SessionID)), {Attachments: DataCardValue17.Attachments}) as well as UpdateIf(GiftOfSecuritiesForms, ID = SessionID, {Attachments: DataCardValue17.Attachments}) and neither work.

Re: Patch Attachments to an Existing file

Ahh, sorry i missed it was attachment.

 

Here are some discussion regarding your issue. https://powerusers.microsoft.com/t5/General-Discussion/Need-to-add-Attachment-to-a-PATCH-to-a-ShareP... It seems its not possible to use Patch function for attachments 😕

Anonymous
Not applicable

Re: Patch Attachments to an Existing file

Yeah, that's what I was afraid of.. I couldn't find any recent discussion posts about it, so I was hoping something new had come up. Thanks afor the link and letting me know!

Re: Patch Attachments to an Existing file

Your welcome.

 

I actually was figthing this a month ago and was not able to find any descent solution. Bouncing over a Flow may help, but it didnt go down that road at that time.

 

If i find some spare time I may test it again as it would be super useful!

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 325 members 5,813 guests
Please welcome our newest community members: