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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Count sharepoint case ...
Power Automate
Unanswered

Count sharepoint case number via flow and send email

(0) ShareShare
ReportReport
Posted on by 11

HI Guys

I have one case regarding the count the Sharepoint items via flow

 

Idea:  there 3 company names in sharepoint list, then I need to count  the status: on going  case number per company and send summary emails and also with attachment from sharepoint list for the open case details

 

take below pictures as example 

 

the email body should summary like below

 

ongoing cases:

IJV : 1

STJV:1

Sharefunction: 1 

 

Bake2046_0-1628652193788.png

any thoughts ?

Categories:
I have the same question (0)
  • Mitanshu Profile Picture
    1,658 Moderator on at

    The response below is assuming both your column types are Single Line of Text, however it would work similarly if you had choice column - intention is to show you a concept.


    0 - Initialize an empty array variable

    1 - Get Items with ODATA query as status equals On going

    2 - Now use Select Filter Array and just get Title column as an Array

    3 - Use expression union(Title,Title) to get distinct values of company names

    4 - Now use Apply to Each on the company name

    5 - Filter Array from Step 1 where Title equals current Item. Count length and store in an array variable from Step 0.


    Step # 0,1,2,3 are in screenshot below

    happyume_0-1628802937383.png

     

    Following above steps, I used following test SP List (Screenshot #2) and got output as below (screenshot #3)

    SharePoint List

    happyume_1-1628803280071.png


    Output

    happyume_2-1628803300215.png

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 298 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 159 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 150 Super User 2026 Season 2

Last 30 days Overall leaderboard