自定义连接器(JSON结果转换为参数)

问题描述 投票:0回答:1
  1. 列表项

我是蔚蓝环境中的新手。我正在从自定义连接器获取JSON响应,但是我需要将该JSON转换为参数,以便可以在进一步的操作中使用这些参数。有人知道这怎么可能吗?

json azure azure-logic-apps openapi flow
1个回答
0
投票

您想在进一步的操作中使用这些参数,但不提及其存储的类型。

1。存储为字符串。这样,整个json是一个字符串,不支持select属性。因此,您需要使用Parse JSON操作将其解析为Json,然后才能选择属性。关于“解析JSON模式”,只需单击Use sample payload to generate schema并粘贴您的json值,它将生成。然后选择您的媒体资源,只需使用@{body('Parse_JSON')?['name']},即可使用。

enter image description here

enter image description here

2。如果将其存储为Object,只需使用表达式variables('test1')['name']即可获取。

enter image description hereenter image description here

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