CosmosDB
CosmosDB Plugin – Database Actions
Summary (SEO Meta Description):
The CosmosDB Plugin allows WeHub workflows to interact directly with Azure Cosmos DB databases.
It provides actions to insert, retrieve, query, and delete database records without writing custom code.
Overview
The CosmosDB Plugin enables seamless automation with Azure Cosmos DB, Microsoft’s globally distributed NoSQL database service.
With these actions you can manage and access data at scale while maintaining high availability and low latency.
Typical Use Cases:
- Store and retrieve application data in a cloud-native NoSQL database
- Build real-time analytics pipelines for IoT or telemetry data
- Query and manage multi-tenant data for SaaS applications
- Automate cleanup of outdated or test data in Cosmos DB
Available Actions
| Action | Description | 
|---|---|
| Insert database | Insert a new JSON document into a Cosmos DB collection. | 
| Get database | Retrieve a single document by its unique key or ID. | 
| Query database | Run structured queries to fetch multiple documents based on filters. | 
| Delete database | Permanently remove a document from a collection using its unique key or ID. | 
FAQ
Q: Can I query nested fields in documents?
A: Yes. Use JSON path or dot notation inside the Inputs section of the Query action.
Q: What happens if a Document ID is not found in Get or Delete?
A: The action completes without error and simply returns no result.
Q: How are data types handled when inserting documents?
A: Select the correct Type (e.g., DATE, BOOLEAN) to ensure values are stored in the proper format.
Keywords: WeHub CosmosDB Plugin, Azure Cosmos DB, Insert Document, Query Database, Delete Document, NoSQL Workflow Automation