answerApproval
Syntax | answerApproval(requestId_or_Key, approvalId, decision) | Package |
|
Alias |
| Pkg Usage |
|
Description
Answer to an existing approval.
Parameters
Parameter name | Type | Required | Description |
|---|---|---|---|
requestId_or_Key | String | Yes | The request key or id. |
approvalId | String | Yes | The id of the approval to be answered. |
decision | boolean | Yes | The decision can be 'true' if we want to approve of 'false' if we decline the approval. |
Return Type
Example
Example 1
JSMApproval approval = answerApproval("SM-92", 23, true);
return approval;