ApproveResult

The approve() command returns an array of ApproveResult objects.

A ApproveResult object has the following properties:

Name

Type

Description

approval_errors

string

A string describing any approval errors.

approval_warnings

string

A string describing any approval warnings.

id

string

The internal ID of the record submitted for approval or approved.

errors

oaError[]

An array of oaError objects (see Error).

If an error occurred the approve() command returns an array of one or more oaError objects providing the error code and description. The error description may be empty.

status

string

-1 if the operation is unsuccessful (one or more errors occurred).