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.
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.
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 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.
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.
Hope you get the basic understanding of attachment actions available for SharePoint in Power Automate.