Input

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

Input Item Data Type Description
CollectionName String Specify the name for the collection, where documents are inserted, with single or double quotation marks.
Note: 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 in the General tab.

Document String Enter a document into this field with double quotation marks. This document is inserted into the specified collection.
Note: If you want to insert multiple documents in the specified collection, you can duplicate the Document node by hovering your cursor over the Document node and right-clicking to select Duplicate from the pop-up menu.
ContinueOnError Boolean Enter true() into this field if you want the remaining insert operations to continue when an error occurs. Otherwise, leave this field blank.
Note: If you select the Continue On Error check box in the General tab, leave this field blank.
IndexDocument String Enter a document with double quotation marks to index documents in the specified collection. The index document can be further used in querying documents. For more information on creating an index, refer to http://docs.mongodb.org/manual/administration/indexes-creation/.
IndexOptionsDocument String Enter an index type for the index document with double quotation marks, such as "{unique:1}". For more information on index options, refer to http://docs.mongodb.org/manual/core/index-properties/

https://docs.mongodb.com/v3.0/reference/method/db.collection.createIndex/

The following fields are displayed when the Is GridFS check box is selected in the General tab.
BucketName String Specify the name for the bucket, where files are inserted, with single or double quotation marks.
Note: 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: If you want 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 from the pop-up menu.
FullFileName String Enter the absolute path for the file with single or double quotation marks. This file is inserted into the specified bucket.
Note: At least 8GB memory is required for the machine, if the inserted file is 1GB.
NewFileName String Enter a new name for the file with single or double quotation marks when you insert it into a bucket. The new file name can be used when you query the file.