Input

The following table describes the fields on the Input tab of the InsertDocument activity.

Input Item Data Type Description
CollectionName String Specify a name for the collection where documents are inserted, within single or double quotation marks. Adhere to the following rules when specifying the collection name:
  • Do not start the collection name with system.
  • Do not contain empty strings, and characters such as $.

The value specified in this field overwrites the value specified in the Collection Name field of the General tab.

Document String Enter a document name in this field within double quotation marks. This document is inserted in the specified collection.
Note: To insert multiple documents in a collection, you can duplicate the Document node by hovering your cursor over the Document node and right-clicking to select Duplicate.
ContinueOnError Boolean Enter true() in this field if you want the remaining insert operations to continue even when an error occurs. Otherwise, leave this field blank.
Note: If you select the Continue On Error check box on the General tab, leave this field blank.
IndexDocument String Enter a document name within double quotation marks to index documents in the specified collection. The index document can be further used in querying documents.

For more information about creating an index, see http://docs.mongodb.org/manual/administration/indexes-creation/

.
IndexOptionsDocument String Enter an index type for the index document within double quotation marks, such as "{unique:1}".

For more information about the index options, see http://docs.mongodb.org/manual/core/index-properties/

For more information about createIndex method, see https://docs.mongodb.com/v3.0/reference/method/db.collection.createIndex/

The following fields are displayed when the Is GridFS check box is selected on the General tab.
BucketName String Specify the name for the bucket, where files are inserted, within single or double quotation marks. Adhere to the following rules when specifying the bucket name:
  • Do not start the bucket name with system.
  • Do not contain empty strings, and characters such as $.
GridFSFile N/A This node supports duplication.
Note: To insert multiple files into a bucket, you can duplicate the GridFSFile node by hovering your cursor over the GridFSFile node and right-clicking to select Duplicate.
FullFileName String Enter the absolute path for the file within single or double quotation marks. This file is inserted in the specified bucket.
Note: At least 8 GB memory is required for the machine, if the inserted file is 1 GB.
NewFileName String Enter a new name for the file within single or double quotation marks when you insert it into a bucket. The new file name can be used when you query the file.