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!
Solved! Go to Solution.
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']
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.
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.
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']
Check out new user group experience and if you are a leader please create your group
See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.