Cosmos DB Connector
Documentation
Version: 2
Documentation

EndPoint Create a document in the container


Name

create_document

Description

Insert JSON document in Cosmos DB Container. [API reference]

Parameters

Parameter Label Required Options Description
Table Table Name (Case-Sensitive) YES
Database Database Name (keep blank to use default) Case-Sensitive NO Leave blank to use default DB set on connection screen
Document Document NO
PartitionKey Partition Key Value (default is supplied Id) NO
Option Value
Default .
SingleKeyValue ["someValue1"]
MultiKeyValue ["some_value1","some_value2" ]
The partition key value for the document. Must be included if and only if the collection is created with a partitionKey definition
Upsert Enable Upsert Mode (update if document found) NO
Option Value
true true
false false

Output Columns

Label Data Type (SSIS) Data Type (SQL) Length Raw Description
id DT_WSTR nvarchar(4000) 4000 False
_rid DT_WSTR nvarchar(4000) 4000 False
_ts DT_I8 bigint False
http_status DT_I4 int False

Input Columns

Label Data Type (SSIS) Data Type (SQL) Length Raw Description
PartitionKey DT_WSTR nvarchar(4000) 4000 False
Document DT_NTEXT nvarchar(MAX) False
Required columns that you need to supply are bolded.