cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
macquarriek10
Level: Powered On

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
Highlighted

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!

7 REPLIES 7

Re: Patch Attachments to an Existing file

Hello,

 

What is your datasource/connector?

macquarriek10
Level: Powered On

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!

macquarriek10
Level: Powered On

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 :-/

macquarriek10
Level: Powered On

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!

Highlighted

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!

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 281 members 4,310 guests
Recent signins:
Please welcome our newest community members: