Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Lookup dataset > flow condition based on result

(0) ShareShare
ReportReport
Posted on by 34

Hi Folks,

 

Wondering if this Flow is possible as a proof of concept?

 

We want users to submit an MS Form, then a flow will check whether the user is present on a database (Excel Sheet of SP List) by looking up their email.

 

If they are present on the DB, they receive an email with one set of instructions. If they're not on the DB they receive a separate set of instructions.

 

I'm okay with all parts of the flow, except looking up the DB to check.

 

Any help appreciated, thanks, Jason.

  • jasonmurphy Profile Picture
    34 on at
    Re: Lookup dataset > flow condition based on result

    Hi @v-LilyW-msft

    I have now got this working. Thanks!

     

    Thanks, Jason.

  • jasonmurphy Profile Picture
    34 on at
    Re: Lookup dataset > flow condition based on result

    Thanks @v-LilyW-msft, yes, this works well. I have accepted it as a solution. Thanks again for your help. Jason.

  • v-LilyW-msft Profile Picture
    on at
    Re: Lookup dataset > flow condition based on result

    Hi @jasonmurphy 

    Has your problem been solved?

    If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

    Best Regards!

  • jasonmurphy Profile Picture
    34 on at
    Re: Lookup dataset > flow condition based on result

    Hi @v-LilyW-msft, thanks so much for this detailed explanation and example. Greatly appreciated. I will give this a go and report back. Have a great weekend, Jason.

  • Verified answer
    v-LilyW-msft Profile Picture
    on at
    Re: Lookup dataset > flow condition based on result

    Hi @jasonmurphy 

    Thank you for posting.

    According to your description, you want to check whether the user is present on a database when an From is submitted.

    I set up a simple Flow with the data is stored in excel.

    I use Filter Query to filter the row that meet the condition. If there is no row that meet the condition, indicates the user does not exist on DB, otherwise,the user exists on the DB

    You can refer to as below:

    v-LilyW-msft_0-1623393452360.png

    v-LilyW-msft_1-1623393452372.png

    Expression:empty(outputs('List_rows_present_in_a_table')?['body/value'])

    v-LilyW-msft_2-1623393452375.png

     

    v-LilyW-msft_3-1623393452377.png

    This is my database in Excel

    v-LilyW-msft_4-1623393452380.png

    After Test2 submit a form, Test2 will receive an email as below:

    v-LilyW-msft_5-1623393452381.png

    Hope the content above may help you.

    Best Regards

    Lily

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492