Skip to main content
Tweeted twitter.com/StackSharePoint/status/804650145967116288
edited body
Source Link
Madhav
  • 1.5k
  • 1
  • 16
  • 26

I 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 below snap
enter image description here
Output
enter image description here
my workflow with Calling REST API call action is as like below snap
enter image description here
and it's output is as like below snap
enter image description hereenter image description here

I 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 below snap
enter image description here
Output
enter image description here
my workflow with Calling REST API call action is as like below snap
enter image description here
and it's output is as like below snap
enter image description here

I 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 below snap
enter image description here
Output
enter image description here
my workflow with Calling REST API call action is as like below snap
enter image description here
and it's output is as like below snap
enter image description here

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

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

I 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 below snap
enter image description here
Output
enter image description here
my workflow with Calling REST API call action is as like below snap
enter image description here
and it's output is as like below snap
enter image description here

edited body
Source Link
Madhav
  • 1.5k
  • 1
  • 16
  • 26

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 hereenter image description here
and it's output is as like bellow snapp
enter image description here

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

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

added 208 characters in body
Source Link
Madhav
  • 1.5k
  • 1
  • 16
  • 26
Loading
added 25 characters in body
Source Link
Gautam Sheth
  • 31k
  • 1
  • 36
  • 62
Loading
Source Link
Madhav
  • 1.5k
  • 1
  • 16
  • 26
Loading