web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Looking up a value in ...
Power Automate
Answered

Looking up a value in SharePoint list using Power Automate

(0) ShareShare
ReportReport
Posted on by 21

I have a SharePoint list with two columns... "Name" and "Email Address". I need a simple flow, when a user completes a Microsoft Form, and enters the Name, and submits it, I need an email sending to the corresponding email address in the list. Switching isn't an option as there are around 100 options, and the limit is 8. So if a user enters "Joe Bloggs" as the name, the email is sent to "joe.bloggs@xxxxx.com", etc etc

Categories:
I have the same question (0)
  • Verified answer
    grantjenkins Profile Picture
    11,063 Moderator on at

    Hopefully this is what you're looking for.

     

    For this example, I'm using the following list.

    grantjenkins_0-1677449971402.png

     

    And the following Microsoft Form.

    grantjenkins_3-1677450069440.png

     

    See full flow below. I'll go into each of the actions.

    grantjenkins_1-1677450007166.png

     

    When a new response is submitted and Get response details retrieve the data from the Microsoft Form.

    grantjenkins_2-1677450040410.png

     

    Get items returns the item(s) where the Name (Title) is equal to the Name entered on the Form.

    grantjenkins_4-1677450116765.png

     

    Condition checks to see if one row is returned (we found a match). If true, we go into the Yes branch. The expression used in the condition is:

    length(outputs('Get_items')?['body/value'])

    grantjenkins_5-1677450181456.png

     

    In the Yes branch, we Send the email to the user. Note that even if there is only one row returned, it will still be inside an array, so we can just use the first expression to extract out the first row (to avoid a loop being added). The expression used to get the email from the first row is below. You would just need to use the internal name of your Email column.

    first(outputs('Get_items')?['body/value'])?['Email']

    grantjenkins_6-1677450293238.png

     

    IMPORTANT: This flow will only find a match if the name is entered exactly the same (case sensitive). If you wanted the condition to be non-case sensitive, you would need to store your Names in your SharePoint List as all lowercase or uppercase then check on the same case in your Microsoft Form. Or retrieve all items initially, then use a Filter array to convert both the name in the SharePoint List and the Microsoft Form when performing the filter.


    ----------------------------------------------------------------------
    If I've answered your question, please mark the post as Solved.
    If you like my response, please consider giving it a Thumbs Up.

  • tonythetiger Profile Picture
    21 on at

    This is what I need, but I'm struggling to get the filter field set in the "Get Items" bit of the flow... How would I enter it? Thanks.

  • grantjenkins Profile Picture
    11,063 Moderator on at

    For the Filter Query you would just type Title eq '' and then put your cursor between the single quotes and click on the question from the dynamic properties that show up.

  • tonythetiger Profile Picture
    21 on at

    Thanks for this. It runs successfully now 🙂 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 957

#2
Valantis Profile Picture

Valantis 847

#3
Haque Profile Picture

Haque 609

Last 30 days Overall leaderboard