Question

Delete SharePoint Online List Item Attachment File

  • 13 February 2023
  • 3 replies
  • 229 views

Badge +4

I have a Nintex Automation Cloud workflow which copies the file attachment of a SharePoint Online list item to a separate document library.  After copying the file, I need to delete the attachment from the list item. I’m able to copy the file to the library but am struggling to find a way to remove the attachment from the list item.

Any suggestions? 

 


3 replies

Userlevel 6
Badge +16

Hi @tmfitz 

You can use SPO APIs to delete the list attachments.

 

Refer to this article

 

Here is a YouTube Video - Please note that this is done in O365 Workflow

 

Badge +4

Thanks @Garrett.  This example is using Nintex Workflow for O365. I’m using Nintex Workflow Cloud.  But this is a good example to start and I’ll see if I can translate to NWC.

Userlevel 6
Badge +16

Hi @tmfitz 

Both the solution are about using the SharePoint Online Web APIs. All you really need to implement the APIs is a web browser. One of the best Web API testing tool is Postman. 

You need to check whether your organization has allowed for the SPO APIs to be used.  

 

Its just that the YT implementation are using O365.

 

Important part if you missed reading the article

 

Reply