cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
anabananei
Level: Powered On

Approval Rejection Count

Hello,

 

I am building a flow with wherein a task needs an approval of the customer. I'm using an SP list and users add items of each task then sends an approval email to the customer. If  the task is rejected, it goes back to the top of the process until it gets approved. What I like to do is record the number of times the approval was rejected in a SP column. Is there a way to do this? I'm using a manual trigger using buttons.

 

Thanks in Advance!

Ana

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Approval Rejection Count

@anabananei:

 

I agree with the solution proposed by @v-yamao-msft but would like to propose an alternative.

 

Please see the screen shots below.  In my example, I added a column to the SharePoint list called RejectCount with a default value of 0.

 

If the approval is rejected, I update the list item and increnet the RejectCount column by 1 using an expression:

add(body('Get_item')?['RejectCount'],1)
 
The user will need to re-submit for approval once rejected.

 

 

RejectCount.jpgRejectCount2.jpgRejectCount3.jpg 

 

If this solves your issue, please mark you question as Solved.

 

If you need additional information, please post here.

 

Scott

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Approval Rejection Count

Hi @anabananei,

 

I assume that using Increment variable in your flow will work.

 

Please check this doc on how to use Increment variable for a reference:

https://flow.microsoft.com/en-us/blog/calculate-running-totals-and-tracking-maximum-values-in-flow/

 

 

Best regards,

Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Super User
Super User

Re: Approval Rejection Count

@anabananei:

 

I agree with the solution proposed by @v-yamao-msft but would like to propose an alternative.

 

Please see the screen shots below.  In my example, I added a column to the SharePoint list called RejectCount with a default value of 0.

 

If the approval is rejected, I update the list item and increnet the RejectCount column by 1 using an expression:

add(body('Get_item')?['RejectCount'],1)
 
The user will need to re-submit for approval once rejected.

 

 

RejectCount.jpgRejectCount2.jpgRejectCount3.jpg 

 

If this solves your issue, please mark you question as Solved.

 

If you need additional information, please post here.

 

Scott

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

anabananei
Level: Powered On

Re: Approval Rejection Count

Thank you @v-yamao-msft & @ScottShearer!

 

I tried what @ScottShearer suggested since I'm not yet familiar with variables (will try to read some documentations about it). Worked like a charm! But before I mark it as resolved, would like to know if its possible to apply the expression to calculated columns?

 

I have a "Due Date" column that automatically adds 2 days after the creation date to compute the due date of the item. This is my formula:

=Created+TRUNC(2/5,0)*7+MOD(2,5)+IF(WEEKDAY(Created)+MOD(2,5)>6,2,0)-IF(WEEKDAY(Created)=7,1,0)-IF(AND(OR(WEEKDAY(Created)=7,WEEKDAY(Created)=1),MOD(2,5)=0),2,0)

 

I want to add another 2 days to the due date everytime the approval is rejected by the customer however, it does not appear in the "Update Item" action. Any suggestions on how will this work?

 

Thank you in advance!

Ana

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,268)