jboots77
Design Dabbler

DeleteAttachment - Call Web Service Error - The remote server returned an error: (401) Unauthorized

Jump to solution

Hello all,

 

I've created a workflow that copies the items list attachments with a reference ID to an Attachments Library using a Call web service - GetAttachmentsCollection Web method - This works fine (example below)

jboots77_3-1624032273593.png jboots77_10-1624035097798.png

 

 

The issue is, in the same workflow I try to delete the List Attachments after copying them somewhere else, as I don't need them in two different spots.

 

To do this I use the Call web service - DeleteAttachments Web method. 

 

Every time I run the DeleteAttachments web method I get a error.

If I click "Execute" I get the error error "The remote server returned an error: (401) Unauthorized."(Example Below)

If I click "Test connection" I get the error error "Request failed with status: Unauthorized."(Example Below)

jboots77_5-1624033260990.png jboots77_14-1624035331549.png

jboots77_16-1624035456742.png

 

If I run the workflow I get a workflow error with the following comments in the workflow status - jboots77_9-1624034041334.png

 

If anyone has any idea or suggestion why I'm receiving this error on the DeleteAttachments method but not the GetAttachmentsCollection method I'm all ears.

 

If you need screenshots of the workflow please let me know.

 

If anyone needs extra info on the workflow please let me know and thank you for taking the time to look at my post / give me a hand,

Jordan

 

Ps. I'm using Nintex 2016 on SharePoint so I'm not at all sure what I should have put the label on this post.

0 Kudos
Reply
1 Reply
kunalpatel
Automation Master
Automation Master

Re: DeleteAttachment - Call Web Service Error - The remote server returned an error: (401) Unauthori

Jump to solution
0 Kudos
Reply