Skip to main content

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

FieldDescriptionType / Options
LabelCustom name for the actionString
Select connectionChoose or create a secure connection to Azure Cosmos DBConnection
Partition KeyThe partition key of the document(s) to updateString
Container nameTarget Cosmos DB containerDropdown
Inputs (Manual)Define input fields for the updated documentKey–Value pairs (Types: NUMBER, STRING, BYTE, DATE, DATETIME, BOOLEAN, OBJECT, ARRAY, ANY)
SchemaSelect or define schema for updated dataSchema
Truncate FieldsToggle to limit or truncate large field values during processingBoolean

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