How to pull a single value from json in Azure Logic Apps:?

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

我有以下内容。我试图提取一个值,但无论我如何尝试提取它,我都一无所获。

json azure parsing kql sentinel
1个回答
0
投票

从我这边重现后,在我的逻辑应用程序中使用以下表达式后,我可以获得预期的结果。出于演示目的,我已将哨兵的值存储在 compose 中并尝试从中检索。

outputs('Compose')[0]['Estimated Price']

下面是我的逻辑应用程序的流程

enter image description here

结果:

enter image description here

注意:如果您的查询在单次运行中返回多个估计值,则无法初始化该值,但您可以使用 Set_Variable 和 Parse_Json 来设置值,如下所示。

enter image description here

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