cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Not applicable

how to remove list attachments?

Hi people

please help me, what action can I use tu remove list attachments

Labels: (1)
Tags (1)
0 Kudos
Reply
2 Replies
Highlighted
Nintex Newbie

Re: how to remove list attachments?

Currently there is no an action in Nintex for this. Anyway you can use the action Web Request using a Sharepoint REST Call

executor.executeAsync({                               url: appweburl + "/_api/SP.AppContextSite(@target)/web/lists/getbytitle('TestList')/
getItemById(1)/AttachmentFiles/getbyFileName('test - File.xlsx')?@target='"
+  hostweburl + "'",                     type: "POST",                headers: {                    "Accept": "application/json;odata=verbose",                    "X-Http-Method": "DELETE",                    "X-RequestDigest": $("#__REQUESTDIGEST").val()                },            
Reply
Highlighted
Not applicable

Re: how to remove list attachments?

Hi Fernando

I used the Web Request action with this settings

But, I have an error

"Some parameters failed the validation check. - [InputFileContent] : The parameter or the parameter value is null."

please help me

Reply