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 / 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,650 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

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