NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Employee → Transform to expenseReport

AI-generated

Summary

Submit an Employee record to create a new expense report, optionally passing report details and enabling debug mode.

Inputs

  • id (required) — Internal NetSuite ID of the Employee to transform into an expense report.
  • isDebugMode — If true, include the raw HTTP request and response in the node output for troubleshooting.
  • additionalFields — Optional set of expense report fields to override defaults (account, currency, dates, status, approval flags, expense lines, etc.).

Output shape

Object containing the newly created Expensereport record.

When debug mode is false, the output is a plain JSON object of the expense report. If debug mode is true, a sub‑object containing the full HTTP request and response is added to the output.

Examples

Example 1: Create a basic expense report from an employee

Set the employee ID, leave additionalFields empty, and enable debug mode to verify the API call.

Example 2: Add specific expense lines

Populate additionalFields.expense.items with line details (amount, category, date, etc.) and set status to 'A' for awaiting approval.

Example 3: Mark report as complete

Set additionalFields.complete to true after adding all lines to submit the report for approval.

Discussion