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

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,160)