在Azure表中使用“获取实体”操作时,如何删除odata.etag?

问题描述 投票:0回答:1

如何从Azure表获取实体时如何避免获取odata.etag?

“获取实体结果”具有一个“ odata.etag” ...

[{
        "odata.etag": "W/\"datetime'2020-05-19T14%3A33%3A23.31704Z'\"",
        "PartitionKey": "author",
        "RowKey": "1",
        "Timestamp": "2020-05-19T14:33:23.31704Z",
        "AuthorName": "steve",
        "ChapterTitle": null,
        "Twitter": "@steve"
    }, {

如果我通过REST API将Accept标头设置为application/json;odata=nometadata,则我可以获得的数据没有任何OData多余的位,例如

{
    "value": [{
            "PartitionKey": "author",
            "RowKey": "1",
            "Timestamp": "2020-05-19T14:33:23.31704Z",
            "AuthorName": "steve",
            "Twitter": "@steve"
        }, {
azure-table-storage azure-logic-apps
1个回答
0
投票

根据一些测试,似乎无法避免逻辑应用程序的响应数据中的字段odata.etag。如果您不想使用此字段,则可以在逻辑应用中请求其余的api。就像我的逻辑应用程序如下所示:

enter image description here

或者您可以使用integration account,将其与逻辑应用程序绑定。然后使用Liquid映射从“获取实体”操作的json响应中删除odata.etag字段。

希望有帮助〜

© www.soinside.com 2019 - 2024. All rights reserved.