Power Automate Actions For Managing SharePoint Attachments

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.

Power Automate Actions For Managing SharePoint Attachments

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.

Power Automate Actions For Managing SharePoint Attachments

Get Attachments

This action used to get the list of available attachments for the SharePoint List Item. In association with 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.

Power Automate Actions For Managing SharePoint Attachments

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 the Get Attachments Action.

Power Automate Actions For Managing SharePoint Attachments

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.

Power Automate Actions For Managing SharePoint Attachments

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


Similar Articles