How to set other approver state to "No Longer Required" if one Approver is approved the request

Arun N P
Kilo Contributor

Through my app I am approving the Request approvals by running a SNOW REST script.

I am changing the approve state to "approved" by updating the table sysapproval_approver "state" filed.

var gr = new GlideRecord("sysapproval_approver");
 gr.state = action;

But at the same time i need to set all other approver status to "No Longer Required" through my REST script.

Can anyone please help me on this issue.

thanks in advance

6 REPLIES 6

Priyanka136
Mega Guru

Hi Arun,

You can set the condition as per your requirement. Please refer the below screenshot for the reference:-

find_real_file.png

Please let me know if you any question.

Thanks,

Priyanka

Arun N P
Kilo Contributor

Can anyone changed the approval record "status" change through script.

Please look my scenario mentioned above, provide the input.

thanks