cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
livingstonep
Level 8

combine two mutally exclusive statements into one expression in Flow

Hi, in our Flow, we have an Outlook - Send en email using a shared mailbox step with an HTML table in the body of the message, and we need to use css to hide/show rows depending on field values...

 

so we have these two statements in two expressions in our message body:

 

if(
	And(
		equals(triggerBody()['Advertising']['Value'],'Leaflet top-up request'),
		And(
			Or(
				equals(triggerBody()['L_Artwork']['Value'], 'Bargain New Store')
				,equals(triggerBody()['L_Artwork']['Value'], 'Home & Fashion')
				,equals(triggerBody()['L_Artwork']['Value'], 'Home Store')
				)
			, equals(triggerBody()?['StoreOpeningDate'],'')
			)
		)
		, 'tr.StoreOpenDate {display:none}', 'tr.StoreOpenDate {display:visible}')

and the second one:

if(
	And(
		equals(triggerBody()['Advertising']['Value'],'Door drop request')
		,And(
			Or(
				equals(triggerBody()['DD_Artwork']['Value']	, 'Bargain New Store')
				,equals(triggerBody()['DD_Artwork']['Value'], 'Home & Fashion')
				,equals(triggerBody()['DD_Artwork']['Value'], 'Home Store')
				)
			, equals(triggerBody()?['StoreOpeningDate'],'')
			)
		)
	, 'tr.StoreOpenDate {display:none}', 'tr.StoreOpenDate {display:visible}')

but they are supposed to be mutually exclusive, so how can I combine them?

in our output css we should get just

tr.StoreOpenDate {display:visible}

 or

tr.StoreOpenDate {display:none}
1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: combine two mutally exclusive statements into one expression in Flow

Hi @livingstonep,

 

It seems that you have posted similar issue on another thread, I have replied it at here:

https://powerusers.microsoft.com/t5/Building-Flows/Check-if-Date-selector-field-is-blank-in-MS-Flow-...

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: combine two mutally exclusive statements into one expression in Flow

Hi @livingstonep,

 

It seems that you have posted similar issue on another thread, I have replied it at here:

https://powerusers.microsoft.com/t5/Building-Flows/Check-if-Date-selector-field-is-blank-in-MS-Flow-...

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 413 members 4,513 guests
Recent signins:
Please welcome our newest community members: