Copy Attachments Plug-in

The Copy Attachments plug-in copies one or more attached documents (from an Attachment Control in a form) at a given point in a Workflow to:

  • a folder on server
  • a form in another process
  • a File Library

Properties

Name

Description

Mandatory

binding

Attachment control binding from which the attachment file(s) are copied.

Yes

directory

The file system directory into which ‘Attachment Control attachments’ are copied.

Example:

Direct value: D:\Files\Public\Users\

Value from form field: [/my:myFields/my:field2]

Value from solution field: [field1]

No

targetprocessid

Process id to which attachment file(s) are copied. The specified process status should be “running.”
To define the attachment control binding, specify the targetbinding.

Example:

Direct value : 5CE7CE49-6A9E-4300-B20D-0DCA2DCA1ABB

Value from form field: [/my:myFields/my:field2]

Value from solution field: [field1]

No

targetbinding

The attachment control binding of the target process; attachment file(s) are copied to this binding.
If a file with the same name as your file already exists in the target attachment control, your new file
will overwrite the existing file (merging with the existing file rather than deleting it).

Example:

Direct Value : /my:myFields/my:field2

Value from form field: [/my:myFields/my:field2]

Value from solution field: [field1]

No

folder

The folder name of File Library into which attachments are copied.

No

Preference of file copy

  1. Directory parameter
  2. Both targetbinding and targetprocessid parameters
  3. Folder

Copy attachments plug-in usage example

An administration office receives a paper copy of incoming invoices from vendors. The administration clerk scans the paper copy and then submits the invoice for manager approval. If the manager approves, the vendor invoice will be paid and the scanned copy of the original invoice will be stored for future use.