cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ajwhits
New Member

Send email based on Forms submission and SharePoint list.

I am new to Power Automate but making progress.  I am stuck with finishing this last task.  

Using a Form for external users.  I have a SharePoint list of emails I want to look up based on the location chosen in the Form.  

The SharePoint list contains Column 'Location' and Column 'Email Address'. I am hoping I don't need to create an individual Condition for 40 locations.  

I am not having much success with the steps I need to pull in the Email address.  Not sure if I am headed in the right direction. I have reviewed many of the posts but not one to my specific situation.  Any help is greatly appreciated!

 

Ajwhits_0-1606010156423.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User II
Super User II

Hi @Ajwhits,

 

That's correct, it will only pull the location selected and not the entire list.

 

Next will also still be an Apply to each loop with the output, even if it's only 1 result you are getting back. You could use an index [0] to prevent that loop though:

outputs('Get_Items')?['body/value']?[0]?['Emailaddress']

 

View solution in original post

3 REPLIES 3
Expiscornovus
Super User II
Super User II

Hi @Ajwhits,

 

Are the string values from the Microsoft Forms Student's School question and the location field exactly the same?

 

If so, you could just use the filter query of your get items instead of the filter array option.

filterquery.png

Thank you @Expiscornovus . Yes they are exactly the same.  

 

So just to clarify, this will only pull the location selected and not the entire list?  Should my next step still be Apply to each with output 'Student's School', then send email from the SharePoint List?  

 

Just want to make sure I am understanding correctly.  

Expiscornovus
Super User II
Super User II

Hi @Ajwhits,

 

That's correct, it will only pull the location selected and not the entire list.

 

Next will also still be an Apply to each loop with the output, even if it's only 1 result you are getting back. You could use an index [0] to prevent that loop though:

outputs('Get_Items')?['body/value']?[0]?['Emailaddress']

 

View solution in original post

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (61,851)