Madhav

Madhav

  • 1.4k
  • 196
  • 41.4k

unable to copy all documents from one library to another

Dec 2 2016 4:51 AM
aI am trying to copy multiple documents from one library to another using SPD workflow2013 in which am using REST API's and Looping, for copying single document I followed This article and it works fine for a copying single document to another library because there am passing the hard coded name of that specific item/file which is available in 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 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 loop when am reading all documents by calling REST API call action it gets only first item/file name and when am reading all documents by not calling REST API call action and simply log that item name variable to WF history then it is going through all items and showing these names in log history .
 
and its output is as like below
 
my workflow with Calling Rest API call action is as like below snap 
 
it's output is as like below snap
 
so can any one help me with this issue?as am unable to resolved this.