Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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 ?

  • Mitanshu Profile Picture
    1,614 Super User 2025 Season 1 on at
    Re: Count sharepoint case number via flow and send email

    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,618 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,962 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow