David72
David72

Reputation: 39

Update document in cosmos DB with logic app

Im trying to add new objects in my CosmosDB Item using LogicApp.

{
  "id": "1000",
  "phone": "55512341212"
}

to

{
  "id": "1000",
  "phone": "55512341212"',
  "name":"David"
}
I works if I use "Create or Update a Document" but I have to know the existing content and overwrite. How to just add "name":"David" without knowing the content ? Thanks! David

Upvotes: 1

Views: 1123

Answers (1)

Mark Brown
Mark Brown

Reputation: 8793

Partial updates are not currently possible with Cosmos DB. You must write the entire record back using ReplaceItemAsync() or UpsertItemAsync().

Upvotes: 1

Related Questions