cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

copy list attachments to document library count = 0

Jump to solution

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)/...

the list:

The workflow

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

Labels: (1)
Reply
4 Replies
Workflow Hero

Re: copy list attachments to document library count = 0

Jump to solution

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

Reply
Workflow Hero

Re: copy list attachments to document library count = 0

Jump to solution

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.

0 Kudos
Reply
Workflow Hero

Re: copy list attachments to document library count = 0

Jump to solution

MODEM!

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

Thanks for your help!

0 Kudos
Reply
Workflow Hero

Re: copy list attachments to document library count = 0

Jump to solution

Good work!

0 Kudos
Reply