Time

A time transaction, also known as TimeBill, records the hours worked by an employee. This transaction can be used to record billable hours and invoice customers. This transaction is available when the Time Tracking feature is enabled.

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

The internal ID for this record is timebill.

See the SuiteScript Records Browser for all internal IDs associated with this record.

Note:

For information about using the SuiteScript Records Browser, see Working with the SuiteScript Records Browser in the NetSuite Help Center.

For information about scripting with this record in SuiteScript, see the following help topics:

Supported Script Type

The time record is scriptable in both client and server SuiteScript.

Supported Functions

The time record is fully scriptable, which means that the record can be created, updated, copied, deleted, and searched using SuiteScript.

Related Topics

retract

Corresponding UI Button

Retract

Action Description

Retracts pending timebill with the specified ID.

Returns

{"id": recordId, "action": "retract", "success": [true or false], "recordCount": number of retracted timebills}

Supported Script Types

Client and server scripts

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

Since

2021.1

Parameters

See action.execute(options) for details about parameters required for the execution of any action. RecordId is a default input parameter for this action. No additional input parameters are necessary.

Sample Return Objects

The following sample shows how to use a retract action on timebill.

              {

{

"id": recordId,

"action": "retract",

"success": [true or false],

"recordCount": number of retracted timebills

},

"notifications":[ Error, Warning, Information and text]

} 

            

General Notices