cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Julien2
Post Prodigy
Post Prodigy

How to filter all the status Active cases - Calculate their total and send them in an email?

Hello,


I am planning to create a flow that sends me a daily reminder email about all the cases that have the Status label "Active" in the Cases entity in Dynamics CRM 365.

 

After I filter all the active cases, I would like to display the case's title of the active ones, and the total of the active cases in an HTML table for I use it in the email template.

 

What are the actions I should use to build this flow and the query to select all the active cases and to calculate the total of the actives ones to display them in an HTML table?

 

Can please someone explains in detail and provides examples to achieve the following flow?

Any help will be greatly appreciated.
Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
v-alzhan-msft
Community Support
Community Support

Hi @Julien2 ,

 

Please refer to screenshot below to create the flow:

1.png

 

The expression in the Select as below:

item()?['cdmtmp_fullname']

 

The expression in the Send an email action as below:

length(body('Filter_array'))

 

Best regards,

Alice       

Community Support Team _ Alice Zhang
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

2 REPLIES 2
v-alzhan-msft
Community Support
Community Support

Hi @Julien2 ,

 

Please refer to screenshot below to create the flow:

1.png

 

The expression in the Select as below:

item()?['cdmtmp_fullname']

 

The expression in the Send an email action as below:

length(body('Filter_array'))

 

Best regards,

Alice       

Community Support Team _ Alice Zhang
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

Hello @v-alzhan-msft ,

 

I have achieved this flow through the example you mentioned.

Thank you very much for your support!

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,078)