Skip to main content

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

FieldDescriptionType / Options
LabelCustom name for the actionString
Select connectionChoose or create a secure Azure Cosmos DB connectionConnection
Table nameName of the table where the record will be insertedString
Partition keyPartition key to correctly segment and store the new recordString

(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