Back Forward Home Print
Nintex Workflow 2013 > Workflow Actions
Copy to SharePoint

This action allows the workflow to copy items from the current library to another library within SharePoint.

When the workflow is running on document libraries, the item that the workflow is running on will be copied. In a list, any attachments on the list item that the workflow is running on will be copied.

To use the workflow action:

  • Locate the action in Workflow Actions Toolbox (located on the left hand-side);
    • Click on the Category listings to reveal the actions; OR
    • Search for the action using a keyword.
  • Select the action, drag it onto the design canvas and drop it onto a design pearl.

Alternatively

  • Left-clicking the pearl, mouse-over Insert Action and then the Categories to reveal the actions, click the required action from the list.

To change the settings used by the action:

  • On the action’s title click the down arrow to activate a drop-down
  • Select Configure; OR
  • Double-click the action's icon.

For more information on the other options in the drop-down, please refer to the Getting started with the Nintex Workflow designer.

Options for this action

Destination

Select a location enables a site picker (Select a document library or folder) to navigate through the portal structure of the current SharePoint environment and select the library to which the document will be copied. Folders and sub-folders can be selected.

Enter a URL allows manual entry of the URL or selection using Insert Reference. To copy a file to a remote environment, Enter a URL must be used.

For more details on using Insert Reference, please refer to Inserting reference fields

Copy InfoPath form / Copy embedded attachments

This option is available when designing a workflow on a form library. It allows for InfoPath attachments embedded in the form to be extracted and copied. The XPath query is used to indicate where in the form XML structure the attachments exist. If the XPath query evaluates to more than one attachment node, each attachment will be copied. To copy the actual form item in the form library, choose the Copy InfoPath form option. 

Overwrite options

Use this setting to determine the behavior when a file with the same name already exists in the destination.

  • Remove existing item the file that already exists will be removed. If versioning is enabled in the destination the copy that is created will be an initial version
  • Rename new item the file that already exists will be not be modified. The copied item will have a time stamp appended to its name
  • Update existing item the file that already exists will be overwritten. If versioning is enabled in the destination, the version of the file will be incremented. 

Create folder structure

Check this box to replicate a folder structure in the target library if the item being copied is in a sub folder. This option is not applicable when the destination is a remote SharePoint environment.

Copy item meta data

Check this box to set the item properties on the target item to the same values as the source item. Only matching fields will have their values copied.

Store result in

Stores the new URLs of the copied files into a text or collection variable.

Override credentials

If the destination library is on a remote SharePoint environment, credentials with access to upload files are required. For copying files to a SharePoint site in the same environment as the workflow, the workflow automatically uses permissions with global SharePoint access if no other credentials are specified. To copy the item as a specific account in the local farm, enter the user credentials.

When a file is copied to the local farm with the global system account (i.e. no alternative credentials are specified), workflows in the destination location will not start automatically.