在Logic Apps条件下使用布尔值的正确方法是什么? 如果将bool设置为true,则工作流应该在YES分支中继续,但我始终以此错误消息结束:
ActionBranchingConditionNotSatisfied。 跳过模板操作“HTTP”的执行:不满足此操作的分支条件。
{ "reservations": { "sendBooking": true }}
What is the proper way to use booleans in Logic Apps conditions? If the bool is set to true, the workflow should continue in the YES branch but I allways end up with this error-message :
ActionBranchingConditionNotSatisfied. The execution of template action 'HTTP' skipped: the branching condition for this action is not satisfied.
{ "reservations": { "sendBooking": true }}最满意答案
如果您在条件卡中切换到“高级模式”,您应该看到表达式看起来像@equals(triggerBody()?['sendBooking'], 'true')
将它更新为@equals(triggerBody()?['sendBooking'], true) ,你的逻辑应该可行。
这是因为,默认情况下,我们将true视为字符串,但在这种情况下,它必须是布尔值。
上面的解决方法应该解锁您,我将与团队讨论如何更好地处理这种情况。
If you switch to "Advanced mode" in the condition card, you should see the expression looks like @equals(triggerBody()?['sendBooking'], 'true')
Update it to @equals(triggerBody()?['sendBooking'], true) and your logic should work.
This is because, by default, we treat true as a string, but in this case it needs to be a Boolean.
Workaround above should unblock you, I will discuss with the team to see how can be better handle this scenario.
更多推荐
发布评论