I want to store the reject count for the approvals

AnkitT
Tera Contributor

Hello Community,

 

Can anyone give me the code to store the reject count of the approvals.

2 ACCEPTED SOLUTIONS

Abhishek_Thakur
Mega Sage

Hello Ankit,

You need to configure after BR with below code: -

var count = current.u_rejected_count;
    if (current.state == 'rejected' && previous.state != 'rejected') {
        current.u_rejected_count = count + 1;
}

 

 

View solution in original post

Abhishek_Thakur
Mega Sage

You can DM me, if you need any help related with development.

View solution in original post

2 REPLIES 2

Abhishek_Thakur
Mega Sage

Hello Ankit,

You need to configure after BR with below code: -

var count = current.u_rejected_count;
    if (current.state == 'rejected' && previous.state != 'rejected') {
        current.u_rejected_count = count + 1;
}

 

 

Abhishek_Thakur
Mega Sage

You can DM me, if you need any help related with development.