Solved

copy list attachments to document library count = 0

  • 12 December 2017
  • 4 replies
  • 38 views

Badge +6

Hello,

 

I'm trying to copy list attachments to a document library.  I'm using Vadim's example @ Nintex Workflow for Office 365 - Copy Attachments to Document Library - Vadim Tabakman 

 

It is not working for me so I have emails being sent to me to try to track down the issue.  I seem to never get a count on the attachments.  the web response code is "OK"

 

I copied the exact string I'm sending to the email as well.  this is it:

 

tempstring =

https://MyTenant.sharepoint.com/org/legal/compliance/_api/web/lists/GetByTitle('NewLaw')/Items/(98)/AttachmentFiles

 

the list:

 

The workflow

 

 

 

For some reason it just will not work.  Any ideas?

icon

Best answer by Chris_Ben 14 December 2017, 06:22

View original

4 replies

Userlevel 6
Badge +12

Hi Robert,

I was using this function today so it should work so you're almost there!

Can you check that you've definitely set the Request Headers dictionary properly. 

Also, you know how you made that temp string?  Did you create that as a variable and put your exact code in it?  i.e the workflow context site url + org/legal/compliance etc + item ID.  Log that variable and check that it creates the string exactly as you want it.  e.g. check the getByTitle part doesn't have any extra spaces in it.

Cheers,

Chris

Badge +6

Hello Chris, thanks for the encouragement.  Perhaps a second pair of eyes will catch what is probably a dumb mistake.  The temp string I build is only for sending it to me in an email so that I could make sure I was sending the correct information in the web call.  Like logging, but instant gratification through email :-)

Here is where I build the responseHeaders.  I have looked over this and it looks ok to me, but this would not be the first time someone catches a syntax mistake even after I bet my house that it was correct.

Badge +6

MODEM!

Yep, too quick at selecting my output variables.  I selected ResponseHeaders instead of ReqestHeaders. 

Thanks for your help!

Userlevel 6
Badge +12

Good work!

Reply