Insert
CosmosDB Table Plugin – Insert Action
Summary (SEO Meta Description):
The Insert Action of the CosmosDB Table Plugin adds a new record to an Azure Cosmos DB Table.
Use it to store new data entities such as user profiles, application logs, or configuration entries.
Overview
The Insert Action lets your WeHub workflow create a new item in a specified Cosmos DB Table.
It’s ideal when your workflow needs to capture and persist new records or transactional data.
Typical Use Cases:
- Storing new customer or user data
- Logging application events in real time
- Saving configuration or settings dynamically
- Persisting IoT device readings or sensor data
⚙️ Configuration
| Field | Description | Type / Options | 
|---|---|---|
| Label | Custom name for the action | String | 
| Select connection | Choose or create a secure Azure Cosmos DB connection | Connection | 
| Table name | Name of the table where the record will be inserted | String | 
| Partition key | Partition key to correctly segment and store the new record | String | 
(The new record’s properties and row key should be provided via the workflow input payload.)
FAQ
Q: What happens if a record with the same keys already exists?
A: Cosmos DB will return an error for duplicate keys. Use the Upsert Action if you want to insert or update in a single step.
Q: Can I insert multiple records at once?
A: No. The Insert Action handles a single record per execution. For batch operations, loop this action in your workflow.
Q: Is the insert operation transactional?
A: Yes, Cosmos DB ensures atomicity for single-record inserts.
Keywords: WeHub CosmosDB Table Plugin, Insert Action, Azure Table Storage, Add Record, Cosmos DB Integrations