logic app boolean表达式true不正确

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

I有一个逻辑应用程序表达式,可以正确评估条件,但输出True而不是True.

。 随后的后后,HTTP操作失败了,因为包含此值的JSON有效载荷无法解析

True,需要True.

键 - 值对包含表达式:

"apiTicket": @{equals(body('Get_Ticket_Details')?['takenby'], 'Integration Agent')}


luntime输出:

“ apiticket”:true

eRror:

{ "error": { "code": "InvalidRequestContent", "message": "The request content is not valid and could not be deserialized: 'Unexpected character encountered while parsing value: T. Path 'params.apiTicket', line 15, position 17.'." } }

Microsoft参考指南指出,等于函数应返回
true

false,而不是truefalse https://learn.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-refertions-reference-quequals

我了解如何解决此错误,但是有人知道为什么此功能会这样起作用吗?

logogic应用程序

equals()
function expression azure-logic-apps
1个回答
0
投票
要克服这一点,您可以简单地您的功能如下:

,我手动以Apiticket的方式手动采取了行动。您可以使用它的动态值:

将其更改为:

tolower()

输出:enter image description here

	

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.