cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
scnative
Helper II
Helper II

Count number of times reminder email sent to each user in SharePoint 2016 list

Hi.  I have a flow built like this to send weekly email reminders to users in list if status = Pending:

 

powerAutomate.jpg

 

I want to set a count in the list on each row when an email is sent, so we can see the number of reminders sent to each user. 

 

What is the best way to achieve this? 

1 ACCEPTED SOLUTION

Accepted Solutions

@annajhaveri  Looks like it was just one of those Microsoft bottlenecks that resolved itself over the weekend.  Flow is running and working with incremental counter.  I use the variable steps to make it work.  

scnative_0-1617022467149.png

 

View solution in original post

9 REPLIES 9
annajhaveri
Community Champion
Community Champion

@scnative  do you want a count userwise or just a general count of reminders? Do you want to maintain count per flow run or across all flow run?

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

I want to count the number of emails sent to each user each week.  A running tally, so if it runs weekly, each user who receives one will get a +1 added each week, until the task is marked "Complete" at which time the count stops for each user.  

 

The idea is if the user hasn't returned a PC to our IT department, they get a weekly reminder email (Status = Pending).  Once they return the PC, Status = Complete, at which time the reminder emails stop. 

@scnative  do want the column or already have the column in the same list for maintaining the count? If yes, inside apply to each action, you can add update item action and update the count by adding 1 to the value of the count column. Makes sense?

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

@annajhaveri - wow, you just made this so simple!  🙂  haha!  

 

So I would add an action to update the SharePoint list item.  What expression do I use for that?  I see "add" but am unsure what to do after that. 

@scnative  you can use below add expression in update item action, replace 'Count' with your field name which contains the count

 

add(1, items('Apply_to_each')?['Count'])

 

 

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

That generated an error.  I modified it:

 

add(1, items('Apply_to_each')?['ContactCount'])
 
But it's not actually updating the list.  Does this look right?
 
scnative_0-1616163857334.png

 

@scnative  it looks right, are you facing error, if yes, whats the error?

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

@annajhaveri - sorry for delay, got pulled into other projects. 

 

So, the flow is just running and running... never finishes, and not updating the ContactCount. 

 

scnative_0-1616787811652.png

 

I canceled both tests, one ran for 16 min, the other for 3. 

@annajhaveri  Looks like it was just one of those Microsoft bottlenecks that resolved itself over the weekend.  Flow is running and working with incremental counter.  I use the variable steps to make it work.  

scnative_0-1617022467149.png

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

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

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,702)