cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

A single email to all users in multi-select person column, unless empty.

Hi all,

 

I'm trying to create a flow that will send one single email to all users in a multi-select person column on SharePoint Online. The flow should only do this if the column is not empty.

 

At the moment my flow will successfully send the email to all, however, if there isn't anyone selected in the column then the flow fails.

 

I've messed around with it so much now that I'm not sure any of it even works now! I've tried "null" in the condition 2 box but that gave the same failed response. Anyone have an any suggestions?

Annotation 2020-03-06 165211.png

5 REPLIES 5
Highlighted
Super User III
Super User III

Re: A single email to all users in multi-select person column, unless empty.

Hi @AB4N 

 

Do you want to check the multi select column SharePoint is null or not?

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Highlighted
Frequent Visitor

Re: A single email to all users in multi-select person column, unless empty.

Hi, yes I think that is what’s required.

Highlighted
Super User III
Super User III

Re: A single email to all users in multi-select person column, unless empty.

Hi @AB4N 

 

You need to use the length. 

 

length(items('Apply_to_each')?['Courses']) > 0
 
image.png
 


Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Highlighted
Super User III
Super User III

Re: A single email to all users in multi-select person column, unless empty.

Hi @AB4N 

 

You can also use empty function

 

empty(items('Apply_to_each')?['Courses'])

 

image.png



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Highlighted
Super User III
Super User III

Re: A single email to all users in multi-select person column, unless empty.

Hi @AB4N 

 

Do you need further help on this? If the suggested solution is working as expected then please mark it as solution accepted. This will help others in the community looking for solutions.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

Top Solution Authors
Top Kudoed Authors
Users online (8,047)