Weekly Timesheet

With weekly time tracking, you can track the hours you and other employees work for a week at a time.

Weekly timesheets work in conjunction with the existing Time Tracking feature to help you customize how you capture time entries in a weekly format.

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

The timesheet record type includes the following actions from the Actions Framework:

The REST API Browser includes information about the field names and field types of the timesheet record and about the HTTP methods, request parameters, and operations available to this record. For details, see the REST API Browser’s time sheet reference page.

For information about using the REST API Browser, see The REST API Browser.

Record IDs

The record ID for a timesheet REST record is timesheet.

Prerequisites

This record is available only when the Time Tracking and Weekly Timesheets features are enabled. For more information about how to enable these features, see Managing Time Tracking and Weekly Time Tracking.

Limitations

The following fields on this record are read-only:

  • total hours

  • hours total

  • approval status

  • submitted hours

  • rejected hours

  • allocated hours

  • work calendar hours

  • lock status

This record does not support the Update operation through REST.

Code Samples

The following examples show how to create a new timesheet and approve an existing timesheet.

Create a new timesheet:

            POST /services/rest/record/v1/timesheet HTTP/1.1
Host: yourServer
Content-Type: application/json
Authorization: yourAuthorizationToken
Content-Length: 46
{
"employee": "Your_ID", "tranDate" : "YYYY-MM-DD"
} 

          

Approve an existing timesheet

            POST /services/rest/record/v1/timesheet/346/@approve HTTP/1.1
Host: burespetr-runbox-ml-deuf1-001.eng.netsuite.com
Content-Type: application/json
Authorization: yourAuthorizationToken 

          

Related Topics

REST Web Services Supported Records
SuiteTalk REST Web Services Overview and Setup
Working with Records
NetSuite Record Structure
The REST API Browser

General Notices