To create a document
The following steps create a document, complete with content and properties. The content must be specified as a string. Almost any data with a text/* MIME type is possible: for example, text/plain, text/html, text/xml. The object is filed into the specified folder.
NOTE Content Extended Operations are available for the Component step only.
NOTE When using CE_Operations, the create operations will fail if the Document class Display name contains spaces.
{"DocumentTitle", "STRING", "New Expense Report",
"FirstName", "STRING", fName,
"LastName", "STRING", IName}
When specifying a value for a non-string property, you must convert the value to a string in order to place it within the array. For example:
{"DocumentTitle", "STRING", "New Loan Application",
"LoanAmount", "DOUBLE", numbertostring(loanAmt),
"AppDate", "DATETIME", timetostring(appDate)
"SpecialLoan", "BOOLEAN", convert(spclLoan, string)}
You cannot modify multivalue properties using a properties array. To modify multivalue properties, you must use the setMulti<type>Property operations.
The following table describes the possible data types, as well as which function you should use for converting each type to a string.
Data Type | Conversion function |
---|---|
BOOLEAN | convert(bool_value, string) |
DATETIME | timetostring(time_value) |
DOUBLE | numbertostring(float_value) |
INTEGER | numbertostring(int_value) |
OBJECT | convert(attachment, string) |
To create a folder
The following steps create a folder, either at the root of the object store or as a child of an attached folder.
For the specified document property, you must create three elements within the array: the document's symbolic name, data type and value. An example:
{"FolderName", "STRING", "MyFolder"}
To create a custom object
The following steps create a custom object using a specified class, and property values. The object is filed into the specified folder.