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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filtering leads by use...
Power Automate
Unanswered

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

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    on at

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard