【问题标题】:Update document in cosmos DB with logic app使用逻辑应用程序更新 cosmos DB 中的文档
【发布时间】:2020-12-29 04:52:43
【问题描述】:

我正在尝试使用 LogicApp 在我的 CosmosDB 项中添加新对象。

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

{
  "id": "1000",
  "phone": "55512341212"',
  "name":"David"
}
如果我使用“创建或更新文档”,我会工作,但我必须知道现有内容并覆盖。如何在不知道内容的情况下添加 "name":"David" ? 谢谢! 大卫

【问题讨论】:

    标签: json azure-logic-apps azure-cosmosdb-sqlapi


    【解决方案1】:

    目前无法使用 Cosmos DB 进行部分更新。您必须使用 ReplaceItemAsync() 或 UpsertItemAsync() 写回整个记录。

    【讨论】:

    猜你喜欢
    • 2021-11-07
    • 1970-01-01
    • 1970-01-01
    • 2021-01-14
    • 1970-01-01
    • 2020-01-09
    • 1970-01-01
    • 2022-11-10
    • 2017-12-19
    相关资源
    最近更新 更多