使用Microsoft Flow将Azure Table与Microsoft Flow连接并使用JSON Parser解析Powerapps中的输出

时间:2018-12-03 08:04:17

标签: json azure-table-storage powerapps

我尝试搜索一个可以将Powerapps与Azure Table连接的连接器,但它只给了我Partition Key和Row Key。我发现一种解决方法是将powerapps连接到Flow,将Flow连接到Azure Table,然后使用“响应Powerapps”将检索到的数据发送回App。

我无法解析Azure Table的输出。我已经复制了有效负载以在json解析器中获取架构,但它仍未在最后一个节点中返回这些列。

示例输出为:

{
"statusCode": 200,
"headers": {
"x-ms-request-id": "6dea1324-0002-0080-37d6-8a415d000000",
"x-ms-version": "2016-05-31",
"X-Content-Type-Options": "nosniff",
"x-ms-continuation-NextPartitionKey": "1!21!YksdHQnaTyI-",
"x-ms-continuation-NextRowKey": 
"1!84!ZjI1YjJjYWUtMmMSm500NmEzLThiOTMtZWQxMWJjZWEyZGIx",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "false",
"Cache-Control": "no-cache",
"Date": "Mon, 03 Dec 2018 07:05:33 GMT",
"Content-Length": "943220",
"Content-Type": "application/json"
},
"body": { "odata.metadata": 
"https://abc.table.core.windows.net/$metadata#abc&$select=Area,%20Region,%20Country,%20Distribution,%20StoreCode,%20StoreName,%0ADate,%20ShelfLocation,%20ActivityCode,%20Activity,%20Compliance,%0AChannel,%20Account,%20Brand,%20MonthWeek,%20ImageName,%0AImageNameNew,%20StoreImageLink,%20ReferenceImageLink",
 "value": [
  {
    "odata.etag": "W/\"datetime'2018-11-27T08%3A32%3A12.2095067Z'\"",
    "Account": "account1",
    "Activity": "activity1",
    "ActivityCode": "abc123",
    "Area": "area1",
    "Brand": "brand1",
    "Channel": "channel1",
    "Compliance": "compliance1",
    "Country": "c1",
    "Date": "2018-11-03 15:38:38",
    "Distribution": "Dist 1",
    "ImageName": "abcdefghi1.jpg",
    "ImageNameNew": "abcdef1.png",
    "MonthWeek": "Jan_1",
    "ReferenceImageLink": "https://abc.blob.core.windows.net/fgh1.png",
    "Region": "region1",
    "ShelfLocation": "up",
    "StoreCode": "store1",
    "StoreImageLink": "https://abc.blob.core.windows.net/rty1.png",
    "StoreName": "store qwerty"
  },
  {
    "odata.etag": "W/\"datetime'2018-11-27T08%3A32%3A12.7028579Z'\"",
    "Account": "account2",
    "Activity": "activity2",
    "ActivityCode": "abc456",
    "Area": "area2",
    "Brand": "brand2",
    "Channel": "channel2",
    "Compliance": "compliance2",
    "Country": "c2",
    "Date": "2018-11-10 16:16:16",
    "Distribution": "Dist 2",
    "ImageName": "abcdefghi2.jpg",
    "ImageNameNew": "abcdef2.png",
    "MonthWeek": "Nov_2",
    "ReferenceImageLink": "https://abc.blob.core.windows.net/fgh2.png",
    "Region": "region2",
    "ShelfLocation": "down",
    "StoreCode": "store2",
    "StoreImageLink": "https://abc.blob.core.windows.net/rty2.png",
    "StoreName": "store azerty"
  }
    ],
        "nextLink": "https://flow-apim-europe-001-westeurope-01.azure-apim.net/apim/azuretables/3293db5f3eb64d7c8c1bf13ce9f1f59f/Tables/abc/entities?NextPartitionKey=1!21!YksdHQnaTyI--&NextRowKey=1!84!ZjI1YjJjYWUtMmMSm500NmEzLThiOTMtZWQxMWJjZWEyZGIx"
    }
}

我只希望返回区域,地区,国家,分布,商店代码,商店名称,日期,货架位置,活动代码,活动,法规遵从性,渠道,客户,品牌,MonthWeek,图像名称,ImageNameNew,StoreImageLink,ReferenceImageLink字段的数据进入powerapps。

我现在的流量是: Flow Image Link

0 个答案:

没有答案