want to define these 3 "trigger conditions" inside a power automated flow:-
equals(triggerBody()?['IsDraft'],bool(0)).
equals(triggerBody()?['IsInProgressByWorkflow'],bool(1)).
equals(triggerOutputs()?['body/ActiveStatus/Value'], 'Active').
now i can create 3 conditions lines and define each condition inside one condition line, as follow:-
or i can define this statement inside one condition line:-
(
equals(triggerBody()?['IsDraft'],bool(0)),
equals(triggerBody()?['IsInProgressByWorkflow'],bool(1)),
equals(triggerOutputs()?['body/ActiveStatus/Value'], 'Active'))
so which approach we need to follow? and why?
Thanks
Yes, you can combine into one using an and()
expression.
Also, instead of using bool()
, you can just use the words true
and false
... whatever works for you though.