Tuesday, February 5, 2019

Use AND, OR expression in flow conditions

Usually in Microsoft flows you can add only one condition in basic mode. There are no options to add expression like AND, OR. To use these expressions go to advance mode and use the AND, OR . e.g.

I want to use a condition

if (contract value is < 100000 and standard term = 'Yes' )
then
      Do this
else
      Do else


1) To use it in the flows enter the first condition in basic mode, go to advance mode and  copy it in notepad
2) Delete the first condition
3) Apply the second condition, go to advance mode and  copy it in notepad

Create the condition yourself with @and

@and
(
     lessOrEquals(body('Get_item')?['Contractvalue'], 100000),
     equals(body('Get_item')?['standardterms']?['Value'], 'Yes')
)

NOTE: remove all other @ signs from conditions expect with @and



1) Paste the created condition in MS flows condition box in advance mode and you are done.
2) Save the flow and see it is not showing any errors


For more information please use the following URL

No comments:

Post a Comment