Welcome to an article on how to copy a new item to a different library in SharePoint 2013 and Office 365 using Nintex Workflows. This article will display the action “Copy Document” so that all my developer friends don’t have to spend much time and effort while using this function in their projects.
Let’s see the implementation of this functionality.
- Create two Document Libraries, Dev Document and Dev Document 1.
- In Dev Document, Click on the Library tab on the top ribbon and click on Nintex Workflows.
Figure 1: Dev Document
- You will see the following screen, to create a new workflow.
- Click on “Create new workflow”.
Figure 2: Workflow
- You will come to the design phase of the Nintex workflows.
- Add the action, “Copy Document” either by right clicking on the workflow or by dragging and dropping from the left toolbox.
Figure 3: Copy Document
- Now let’s configure it.
- When you double click on the action the following screen opens up.
Figure 4: Screen Opens
Item: Choose the item as in the current item or any item from other library.
Destination Library: Choose which library do you want to copy the document.
Overwrite: Select Yes/ No or apply a condition if you want to overwrite the document.
- Now we have configured our workflow, let’s go and publish it to use it.
- Click Publish on the left corner of the ribbon of Nintex Designer.
Figure 5: Designer
You will see the following screen:
Figure 6: Screen Below
- Give your workflow a name.
- Choose your task list where it should store the tasks, It will be Workflow Tasks by default.
- Choose your history list where it should store the history logs, It will be Workflow History by default.
- Start Options.
You can either start your workflow manually.
Or you can start your workflow automatically when an item is created, I will select this option to create automatically when a document is uploaded, it will create a copy.
Or you can start your workflow automatically when an item is modified.
- Click on Publish
- Your workflow will get published.
Upload a document in the first library “Dev Document” as per the following screenshot:
Figure 7: Librery
A document gets created.
Figure 8: Get Document
Once the document gets created in “Dev Document”, it triggers a Copy Document workflow through Nintex and creates a copy of the document in the library “Dev Document 1” automatically as per the following screenshot:
Figure 9: DevDocument1
Not only the document, It will also copy all the column values thereby saving your time and effort.
So in this article we saw How to copy a new item to a different library in SharePoint 2013 and Office 365 using Nintex Workflows. We will see more new articles on the actions of Nintex Workflows in the other parts of the article. Till then, keep learning.