Hi,
I'm trying to build a CONDITION that checks two fields using OR. This is my statement, but flow will not save with this statement. Each of the two fields I wish to check are themselves actually boolean, so I was hoping to just use the raw field itself without having to use @equals, but that also didn't work. Any assistance greatly appreciated.
The error is...
The template validation failed: 'The property 'expression' 'or(@equals(body('Parse_JSON')?['inactiveFlag'], bool('true')), @equals(body('Parse_JSON')?['unsubscribeFlag'], bool('true')))' of template action 'Condition_2' at line '1' and column '6047' is not a valid
My statement is...
or(@equals(body('Parse_JSON')?['inactiveFlag'], bool('true')), @equals(body('Parse_JSON')?['unsubscribeFlag'], bool('true')))
Solved! Go to Solution.
Hi Michael,
Thank you for your reply. Your suggestion didn't work, however it did put me on the right track to work our what I was doing wrong. The final solution was ...
@or(equals(body('Parse_JSON')?['inactiveFlag'], bool('true')),
equals(body('Parse_JSON')?['unsubscribeFlag'], bool('true'))
)
Thank you again.
Hi @Ben_Love,
Please try to change the formula in the below format:
or(equals(body('Parse_JSON')?['inactiveFlag'], bool('true')), equals(body('Parse_JSON')?['unsubscribeFlag'], bool('true')) )
Regards,
Michael
Hi Michael,
Thank you for your reply. Your suggestion didn't work, however it did put me on the right track to work our what I was doing wrong. The final solution was ...
@or(equals(body('Parse_JSON')?['inactiveFlag'], bool('true')),
equals(body('Parse_JSON')?['unsubscribeFlag'], bool('true'))
)
Thank you again.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
User | Count |
---|---|
75 | |
22 | |
18 | |
17 | |
13 |
User | Count |
---|---|
127 | |
35 | |
30 | |
28 | |
25 |