Time Actions

The time record type, also known as timebill, currently supports the approve, reject, and submit actions.

For information about SuiteScript 2.x record actions, see the following help topics:

For help working with this record in the UI, see Managing Time Tracking.

approve

Corresponding UI Button

Approve

Action Description

Approve the timebill with the specified ID.

Returns

{"id":recordId}, "notifications":[ Error, Warning, Information and text]}

Supported Script Types

Client and server scripts

For additional information, see SuiteScript 2.x Script Types.

Governance

5 usage units

Since

2018.2

Parameters

See action.execute(options) for details about parameters required for the execution of any action. The approve action does not support any additional parameters.

reject

Corresponding UI Buttons

Reject

Reject with note

Action Description

Reject the timebill with the specified ID. Optionally include a note that explains the reason for the rejection.

Available when the Advanced Approvals on Time preference is enabled.

Returns

{"id":recordId}, "notifications":[ Error, Warning, Information and text]}

Supported Script Types

Client and server scripts

For additional information, see SuiteScript 2.x Script Types.

Governance

5 usage units

Since

2018.2

Parameters

See action.execute(options) for details about parameters required for the execution of any action. The reject action also supports the following additional parameter.

Parameter

Type

Required / Optional

Description

Since

note

string

optional

An explanation of why the timebill was rejected.

2018.1

submit

Corresponding UI Buttons

Submit

Action Description

Submit the timebill with the specified ID for approval.

Available when the Advanced Approvals on Time preference is enabled.

Returns

{"id":recordId}, "notifications":[ Error, Warning, Information and text]}

Supported Script Types

Client and server scripts

For additional information, see SuiteScript 2.x Script Types.

Governance

5 usage units

Since

2018.2

Parameters

See action.execute(options) for details about parameters required for the execution of any action. The approve action does not support any additional parameters.

Related Topics

Managing Time Tracking
Working with the SuiteScript Records Browser
SuiteCloud Supported Records
Transactions

General Notices