cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
MPayne-94 Helper I
Helper I

Using Flow Expressions with Multi Select SharePoint Fields

I am trying to build a flow that pulls names from a multi select from a SharePoint List that I then want to do a If Contains String Variable on that list to generate emails addresses. An example of the formula I have tried is below:

if(contains(triggerBody()?['COLUMN NAME'],'PERSON NAME'),'NAME@EMAIL.com',null)

This unfortunately only returns the null even when there is the desired name chosen in the multi select list.

 

Am I on the right track to pull what I am looking for?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Using Flow Expressions with Multi Select SharePoint Fields

@MPayne-94 

Here is an example.  I have a list with a multi-select choice column called MyChoice.  I evaluate each selection in the loop by looking at MyChoice Value. The string will contain a semicolon delimited list of email addresses.

Technically, I could have eliminate the conditions and used a single expression but the expression would be a bit ugly.

MultiChoice1.jpgMultiChoice2.jpgMultiChoice3.jpgMultiChoice4.jpg

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

6 REPLIES 6
Super User
Super User

Re: Using Flow Expressions with Multi Select SharePoint Fields

@MPayne-94 

A SharePoint choice column that allows for multi-select generates a collection in Flow.  So, you need to loop through the responses (value) and take action as appropriate on each value.  Let me know if you need a example.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
MPayne-94 Helper I
Helper I

Re: Using Flow Expressions with Multi Select SharePoint Fields

An example would be great thanks.

 

@ScottShearer 

Super User
Super User

Re: Using Flow Expressions with Multi Select SharePoint Fields

@MPayne-94 

Here is an example.  I have a list with a multi-select choice column called MyChoice.  I evaluate each selection in the loop by looking at MyChoice Value. The string will contain a semicolon delimited list of email addresses.

Technically, I could have eliminate the conditions and used a single expression but the expression would be a bit ugly.

MultiChoice1.jpgMultiChoice2.jpgMultiChoice3.jpgMultiChoice4.jpg

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

MPayne-94 Helper I
Helper I

Re: Using Flow Expressions with Multi Select SharePoint Fields

@ScottShearer 

 

This is actually how I had it set up to begin with. The issue I ran  into with was that I have 41 different names in my multi-select.

 

This is also only the first part of my flow that I imagine will become quite expansive and I worry about the flow taking too long and failing

Super User
Super User

Re: Using Flow Expressions with Multi Select SharePoint Fields

@MPayne-94 

I suggest creating a second SharePoint list that contains the option values as well as the email addresses.  That way, you can just lookup the email address in the reference list rather than using a condition.  You'll still need to loop through each selected option per my example.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
powerauto926
New Member

Re: Using Flow Expressions with Multi Select SharePoint Fields

Can you please provide an example. I am using a People or Group column with multiple people selected rather than a Choice column with multiple selections.

 

Thank you!

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: 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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (6,477)