How to add extra approvers at own approval level?

How to add extra approvers at own approval level?

Currently I have this custom function that runs when specific conditions apply.
But the problem is that the Request template is also set to send to $REPORTING_TO$
This means that it will add all three to the same approval stage.

How can I add a new stage with a custom name that is after the default $REPORTING_TO$ stage?
OR how can I override the default $REPORTING_TO$ approval with the ones supplied here?


  1. approversCSV = {"approver-email-address","approver-email-address2"};

  2. // Build return-JSON 
  3. returnjson = {
  4.     "operation": [
  5.         {
  6.             "INPUT_DATA": approversCSV,
  7.             "OPERATIONNAME": "ADD_APPROVAL",
  8.             "send_immediately": "true"
  9.         }
  10.     ],
  11.     "message": "Adding and sending approval to " + approversCSV,
  12.     "result": "success"
  13. };

  14. return returnjson;

                  New to ADSelfService Plus?