NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Time Sheet → Insert record

AI-generated

Summary

Send a POST request to create a new Time Sheet record in NetSuite with optional detailed fields and custom fields, supporting both OAuth1 and OAuth2 authentication.

Inputs

  • isDebugMode — Boolean toggle to include full request and response details in the output for debugging purposes.
  • authMethod — Select authentication method: OAuth1 or OAuth2.
  • additionalFields — Optional collection of Time Sheet properties such as approval status, custom form, employee info, dates, hours, subsidiary, lock status, and other metadata to set on the new record.
  • customFields — Optional list of custom fields to set, each specifying field name, type, and value.

Output shape

A single JSON object containing response details representing the newly created Time Sheet record or error information.

If Debug Mode is enabled, the output includes full HTTP request and response details. Optional fields in additionalFields and customFields allow customization of the Time Sheet record. The operation executes synchronously or asynchronously based on the 'Prefer' option if set.

Examples

Example 1: Create a Time Sheet with employee ID, start and end dates, total hours, and approval status.

Set 'additionalFields' including employee ID (internal identifier), startDate, endDate, totalHours, approvalStatus (internal identifier 1-4), and optionally use 'customFields' to add any custom data.

Links

Discussion