3 Replies Latest reply on Apr 15, 2016 8:59 AM by Saroj Sahu

    Dynamically add approver by runprocess Application-Command Approval

      Share This:

      Dynamically add approver by runprocess Application-Command Approval "Add-Sig" -s "$SCHEMA$" -e "$Request ID$" -t "$ApprovalProcessName$" -o "$custom_approvers$" -1 1 -2 1

      Who can tell me the meaning of "-1 1 -2 1"?

        • 1. Re: Dynamically add approver by runprocess Application-Command Approval
          Sylvain YVON

          Hi Kelvin,

          The AR System documentation is available here : https://docs.bmc.com/docs/display/public/ars81/BMC+Remedy+Approval+Server+application+commands

           

          Application-Command Approval Add-Sig [-s formName] [-e requestID] [-t processName] -o {approverList } [-1 {0 | 1 }] [-2 {0 | 1| 2 | 999}] [-l assigneeGroupID]


          -1— Indicates whether the new signature line is identified as independent or not independent.

          • 1 — Signature line is not independent
          • 0 or any other value — Signature line is independent

          -2— Indicates the action to take on multiple approvers. 0 means one of, 1 means all must sign, 2 means allow only one approver, and 999 means to pull the value from the AP:Process Definition form. Indicates the action to take on multiple approvers.

          • 0 — Creates one signature line for a list of potential approvers. The first approver to act on the request determines the response. The request is withdrawn from the other approvers.
          • 1 — Creates a separate signature line for each approver. For the request to proceed, all approvers must act on their signature lines.
          • 2 — Default; creates a signature line for one approvers. Multiple responses generate an error, and the approval process stops.
          • 999 — Uses the value specified for If multiple approvers in the AP:Process Definition form.-l — This parameter was added to allow you to pass a value for Assignee Group Permissions (field ID 112), for use with the multi-tenancy feature. For more information about multi-tenancy, see the information provided in Foundation objects.
          • 2. Re: Dynamically add approver by runprocess Application-Command Approval
            Jaspreet Singh

            Hi Kelvin

            Could you please let me know on which form you are using this run process command.Is it on SRM:Request or some other form and is this command really adding more no. of signature records to the existing entry.

             

            Thanks

            • 3. Re: Dynamically add approver by runprocess Application-Command Approval
              Saroj Sahu

              Add-Sig command is used to "add a new signature" to an approval-process. So yes, it add a new pending approval enter for an existing process or if you run this command against a process that is not yet invoked, it will create the first pending signature record.

               

              OOTB, you can find this used,

              1. In approval central -> approval details -> add signature option

              2. On change and release forms, there is a "add" button to add adhoc approvers and uses the same command.

              3. As SRM does not have its own approval interface, so all SRM related approval operations are done via approval central, unless someone has some customized stuff.

               

              The document extract shown above is now available at BMC Remedy Approval Server application commands - BMC Remedy Action Request System 8.1 - BMC Documentation