How to change stage and state of RITM when Approval is rejected automatically

MaramA
Tera Contributor

 

Hello,

I am attempting to set up a notification for instances when a RIMT is rejected. Specifically, when an approval is rejected. Despite rejecting the RIMT, the stage and state still do not change.
How I can modify their values once the approval is rejected? This adjustment will allow me to send clear notifications regarding the RIM.

MaramA_0-1716794523800.png

 

3 REPLIES 3

Mark Manders
Mega Patron

You need to check on how this is configured in your instance. This can be by workflow, flow designer, business rules, etc. We can't look inside your instance, so it's not something we can just answer to 'it's this'. Somewhere your approvals are handling the state changes.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Abhit
Tera Guru

@MaramA  ,

 

If you have triggered the approval through Floe designer then make use of Update Record Action based on the condition to set the state.

if its workflow then make use of  Run script activity to update the record.

Cheers!!

Rafał Rataj
Tera Contributor

you can always review the table configuration to see the related Business Rules. eventually flows as well 

either on the RITM [sc_req_item] itself, or on the approvals  [sysapproval_approver] 

Rafa_Rataj_6-1716799924093.png

 

if you want to trigger notifications on RITM rejection, the correct way would be to use the event *.approval.rejected

you can see that that there are Business Rules on table [sysapproval_approver] 

  • Approval Events (Non-Task) 
  • Approval Events (Task)

are sending those events 

 

you also have ootb rejection notification on those events you can use those as a template for your custom ones 

Rafa_Rataj_5-1716799764812.png

 

if it comes to the issue that your RITM is not cancelled after rejection, thats probably a customisation on your side 
depending on your Requested items execution flow it should set the correct state of the Requested item 

Rafa_Rataj_4-1716799597725.png 

Rafa_Rataj_8-1716800080978.png