Power Automate Actions for Managing SharePoint Attachments

Check out - What are the Power Automate actions available for managing Attachments in SharePoint?

Power Automate consists of a large number of Triggers and Actions and SharePoint activities are among them. In this article, I’ll walk through the SharePoint based Attachment actions available in Power Automate so far. There are four actions available right now in Power Automate.

Attachment Actions
All Attachment Actions
  1. Add Attachment

This action used to create an attachment to the SharePoint List Item. To do so, we must provide a SharePoint Site URL, List Name, List Item Id, File Name and File content. After creation, it returns the SharePoint List Item Attachment object and its properties.

Add Attachment
Add Attachment Action
  1. Get Attachments

This action used to get the list of available attachments for the SharePoint List Item. In association to this action, we can use the Get Attachment Content action to retrieve the file contents and, we can use Delete Attachment to delete the attachment based on the attachment identifier.

To do so, we must provide SharePoint Site URL, List Name and List Item Id. It returns the collection of attachment files associated with the given List Item based on provided Id.

Get Attachments
Get Attachments Action in Power Automate

 

  1. Get Attachment Content

This action used to get the file content. It returns the content in binary format. We can use the returned output to create a new file or create a new attachment with a different name in the same list item or use the same name in the different list item.

To do so, we must pass the values of SharePoint Site URL, List Name, List Item Id and Attachment File Identifier.

We can get the File Identifier information from Get Attachments Action.

Get Attachment Content
Get Attachment Action in Power Automate
  1. Delete Attachment

This action used to delete the attachment in a SharePoint List Item based on Attachment Id. To do so, we must pass the values of SharePoint Site URL, List Name, List Item Id and File Identifier.

Delete Attachment
Delete Attachment Action in Power Automate

Hope you get the basic understanding of attachment actions available for SharePoint in Power Automate.

Shantha Kumar
Shantha Kumar
Articles: 278