Skip to main content
2 of 6
added 25 characters in body
Gautam Sheth
  • 31k
  • 1
  • 36
  • 62

unable to copy all documents from one library to another

I am trying to copy multiple documents from one library to another using SPD workflow 2013 in which am using REST API's and looping for copying single document.

I followed This article, and it works fine for a single document because there I am passing the hard coded name of that specific document from my document library. But here I want to copy multiple documents and for that I used the loop in SPD workflow along with REST API's.

Here with help of loop I am reading all names of documents from my document library and simply passing this to REST API instead of hard-coded name but this is not working as I want. Inside the loop this API gets only first item/file name but when am deleting this action of calling REST API and simply log that item name variable to WF history then it is going through all items and showing these names in log history .

My workflow without calling Rest API

enter image description here


Output
enter image description here


My workflow after calling REST API
enter image description here

and it's output is as below
enter image description here

Madhav
  • 1.5k
  • 1
  • 16
  • 26