Skip to main content
4 of 6
edited body
Madhav
  • 1.5k
  • 1
  • 16
  • 26

unable to copy all documents from one library to another

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 .
my workflow without Calling Rest API call action is as like bellow snapp
enter image description here
Output
enter image description here
my workflow with Calling REST API call action is as like bellow snapp
enter image description here
and it's output is as like bellow snapp
enter image description here

Madhav
  • 1.5k
  • 1
  • 16
  • 26