Thanks for your answer.
I tested your shared script, and it has the same value for approving and denying a request.
I also found this variable, holding the same information.
adm-DenialOrCancelingReason
Sorry for the confusion, but we are not sure what exactly you mean. Please, describe the desired behavior in all the possible details with live examples.
Right now my business rules looks like this
This means, it would be triggered against all approvals, no?
I would like to narrow down it further, so this should be only executed if an approval was initiated by either one specific custom command or business rule.