Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Filtering leads by user in Dynamics

(0) ShareShare
ReportReport
Posted on by 3

I am trying to create a flow that is triggered by the creation of a new lead or change to a lead.  I have been successful in doing this but I would also like to determine the number of open leads that the user has and return the number in the email as well.  If this is possible "what" eq "what" in the Filter Query?  thx

  • Verified answer
    v-xida-msft Profile Picture
    on at
    Re: Filtering leads by user in Dynamics

    Hi @mah,

     

    Do you want to determine the number of open leads that the current user has?

    I have made a test on my side and the flow works well. Please take a try with the following workaround:

    1. Add “When a record is created or updated (Preview)” trigger, specify Organization Name, set Entity Name to Leads.
    2. Add “Get record” action, specify Organization Name and Entity Name. Item identifier set to Lead content of above trigger.
    3. Add “List records” action, specify Organization Name and Entity Name. In Filter Query field, type the following formula:5.JPG
    4. Add “Send an email” action

     Image reference:6.JPG

     7.JPG

     

     

    The flow works successfully as below:8.JPG

     

    Best regards,

    Kris

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June 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 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1