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
Super User
Super User

@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

 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Top Solution Authors
Users online (1,979)