Add Attachment to SharePoint List using PATCH function

| Mustafa Usmani

Add Attachment to SharePoint List using PATCH function

At the moment, there’s no method to Patch attachments to a SharePoint list but there’s a workaround available which lets you patch attachments with other data fields that you want to patch. Let’s see how we can achieve this.

  • Insert an edit form of the SharePoint list where you want to patch and select only the Attachments column in the form.

PowerAutomateWorks

  • Now on any button’s OnSelect write your Patch command in the way that is shown below.

PowerAutomateWorks

  • As you can see the first portion of our Patch command is straightforward that we are creating a new record in a table but after giving the record we are using that form’s update attribute to fetch attachments from the form that were added by the user. And this way whenever a new record is created, the attachment will also be saved with its respective item.

Join us next time, as we continue our journey of learning canvas apps.Click here to learn more about Imperium's Power Apps Services. We hope this information was useful, and we look forward to sharing more insights into the Power Platform world.


M
Chief Architect, Founder, and CEO - a Microsoft recognized Power Platform solution architect.

About The Blog

Stay updated with what is happening in the Microsoft Business Applications world and initiatives Imperium is taking to ease digital transformation for customers.


More About Us

We provide guidance and strategic oversight to C-Suite and IT Directors for on-going implementations. Feel free to give us a call.

1 331 250 27 17
Send A Message

Ready to Start?

Get a personalized consultation for your project.

Book a Meeting