cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mah
Level: Powered On

Filtering leads by user in Dynamics

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

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

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support Team
Community Support Team

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

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,190)