answerApproval

answerApproval

 

Description

Answer to an existing approval.

Syntax

answerApproval(requestId_or_Key, approvalId, decision)

Package

 

Alias

 

Pkg Usage

 

Parameters

Parameter name

Type

Required

Description

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

JSMApproval

Example

Example 1

JSMApproval approval = answerApproval("SM-92", 23, true); return approval;

See also