UPDATE
CosmosDB NoSQL Plugin – Update Action
Summary (SEO Meta Description):
The Update Action of the CosmosDB NoSQL Plugin allows WeHub workflows to modify existing documents in an Azure Cosmos DB container.
Use it to keep your NoSQL data current and consistent during workflow automation.
Overview
The Update Action lets WeHub update documents in a Cosmos DB container by partition key.
It supports manual inputs and schema-based mapping, ensuring safe and precise updates.
Typical Use Cases:
- Update patient or customer profiles when receiving new information
- Modify IoT device status or sensor data in real time
- Synchronize data between Cosmos DB and other systems
⚙️ Configuration
| Field | Description | Type / Options | 
|---|---|---|
| Label | Custom name for the action | String | 
| Select connection | Choose or create a secure connection to Azure Cosmos DB | Connection | 
| Partition Key | The partition key of the document(s) to update | String | 
| Container name | Target Cosmos DB container | Dropdown | 
| Inputs (Manual) | Define input fields for the updated document | Key–Value pairs (Types: NUMBER, STRING, BYTE, DATE, DATETIME, BOOLEAN, OBJECT, ARRAY, ANY) | 
| Schema | Select or define schema for updated data | Schema | 
| Truncate Fields | Toggle to limit or truncate large field values during processing | Boolean | 
FAQ
Q: Can I update documents across partitions?
A: No. You must specify the Partition Key for the documents to update.
Q: Can I partially update a document?
A: Yes, provide only the fields you want to update. Other fields remain unchanged.
Q: Does WeHub store my data?
A: No. WeHub passes data securely and does not log document contents.
Keywords: WeHub CosmosDB NoSQL Plugin, Update Action, Azure Cosmos DB Update Document, NoSQL Data Update, Partition Key