KWizCom Professional Services – http://www.kwizcom.com/
Did you ever wish to copy an Item to the current list several times? What is the best way to duplicate a list item? Can it be done without code?
There is an easy, effective way and no – you don't need code! Here's how:
All you need to do is to create two new columns and SPD workflow.
Step 1: Create columns
Name the first new column you create according to the number of copies you want to make. When defining the type of information that will be in the column, choose "number". This column is where you will define the number of copies you want to create.
Name the second column according to the number of copies you want, minus one. Define the type of information that will appear in this new column as "Calculated" (this gives a number which is the result of a calculation based on a different column).
The calculation we will use here will take the first column and subtract from it -1.
The calculation we will use here will take the first column and subtract from it -1.
The formula to use for doing this is =[number of copies]-1 like so:
Step 2: Create a new workflow at the SPD
Open the site at the SPD and then create a new workflow.
Open the site at the SPD and then create a new workflow.
Give the workflow a name and select the list from which you desire to copy the Item. Then select your workflow start options. It is best to choose: "automatically starts the workflow whenever the item is been changed". This will renew your workflow each time the item has been updated and/or edited and insure that the calculated result is always accurate.
Next, define the step of the workflow – select "Number of copies" greater the zero.
And then, define two actions:
1) Update your item: "Numbers of copies" is will be "Number of copies minus one".
And then, define two actions:
1) Update your item: "Numbers of copies" is will be "Number of copies minus one".
2) Create a new item in the list that duplicates the columns taken from the original item. Do not include the "Number of copies" column! If you do an infinite loop will be created.