Imported Employee Expense

This transaction is available when the Expense Report feature is enabled at Setup > Company > Enable Features, on the Employees subtab.

For help working with this record in the UI, see Expense Reporting.

The internal ID for this record is importedemployeeexpense. The internal ID of the new subrecord is importedemplexpensedetail.

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 Types

The imported employee expense record is scriptable in both client and server SuiteScript.

Supported Functions

The imported employee expense record is fully scriptable. It can be created, updated, copied, deleted, and searched using SuiteScript. It can also be transformed.

Sample Codes

          require(['N/record'], function(record) {

    var recordObj= record.create({type: 'importedemployeeexpense', isDynamic: true});



      // Testing

      recordObj.setValue({fieldId: 'memo', value: 'Expense memo 2'});

      recordObj.setValue({fieldId: 'billedamount', value: 500});

      recordObj.setValue({fieldId: 'chargedate', value:  new Date('9/1/2021')});

      recordObj.setValue({fieldId: 'transactionid', value: 'MyTransactionId'});



      var sublist = recordObj.getSublist( {sublistId:'impemplexpensedetail'});



      recordObj.selectNewLine({sublistId:'impemplexpensedetail'});

      recordObj.setCurrentSublistValue({sublistId:'impemplexpensedetail', fieldId: 'fieldname', value: 'Detail Field'});

      recordObj.setCurrentSublistValue({sublistId:'impemplexpensedetail', fieldId: 'fieldvalue', value: 'Detail Value'});

      recordObj.commitLine({sublistId:'impemplexpensedetail'});

}); 

        

Related Topics

General Notices