Query, read, create and delete Azure Cosmos DB for NoSQL items, and list databases and containers.
Explore 6 workflow actions for Azure Cosmos DB, including account permissions and operation limits.
4 read actions2 write actions
WORKFLOW ACTIONS
What you can configure.
Choose an action in the workflow builder, connect an account, and map its inputs. These actions are available in the catalog; your account access and a successful test determine whether they work for your setup.
Create Cosmos DB item
Write
Create an item, or replace it when upsert is on.
Permissions and limits
Account permissions
A read-write account key
Operation limits
Items are at most 2 MB. A lost answer is never resent automatically; use upsert to make a retry safe.
A repeated request may repeat the external action. Review the previous result before retrying a write.
Delete Cosmos DB item
Write
Delete one item by ID and partition key.
Permissions and limits
Account permissions
A read-write account key
A repeated request may repeat the external action. Review the previous result before retrying a write.
Get Cosmos DB item
Read
Read one item by ID and partition key.
Permissions and limits
Account permissions
An account key
List Cosmos DB containers
Read
Read a database's containers with their partition keys.
Permissions and limits
Account permissions
An account key
List Cosmos DB databases
Read
Read the account's databases.
Permissions and limits
Account permissions
An account key (read-only keys work for reads)
Query Cosmos DB items
Read
Run a parameterized SQL query over a container and read one page of items.
Permissions and limits
Account permissions
An account key
Operation limits
Without a partition key the query runs across partitions. Values are bound as parameters, never pasted into the query.
Pagination: cursor. Check the result for additional pages; a single action may not return every record.
SETUP
Start with a controlled test.
01Connect the intended account
Use the account and permissions required for your process. Review the connection check before configuring a workflow action.
02Review inputs and access
Select a listed operation and map its required inputs. Use test records and add a human approval before writes that need review.
03Confirm the result
Inspect step outputs and confirm the result in Azure Cosmos DB. A saved workflow is not a completed provider action.