ANS-0640 · CUSTOM FIELDS, RECORDS & FORMS

What Session Fields Are Available for NetSuite Custom Field Formulas?

NetSuite offers several session-specific fields that can be leveraged within custom field formulas to dynamically display user, role, or date information.

Short answer

NetSuite custom field formulas can utilize session fields to retrieve dynamic information. Key fields include {today} for the current date, {nluser} for the logged-in user's ID, and {nlrole} for the user's role ID. Other fields like user email, NetSuite version, and session ID may also be accessible depending on the specific NetSuite environment and field configuration.

Scenario

NetSuite administrators and developers often need to incorporate dynamic, session-specific data into custom fields. This requires knowing which session fields are available for use within custom field formulas to display information such as the current user, their role, or the current date, directly on records.

Solution

To leverage dynamic session data in NetSuite custom field formulas, administrators can utilize specific session fields. These fields allow for the display of real-time information related to the user, role, or system environment directly on records. The following session fields are commonly available or may be accessible for use in custom field formulas:

  • {today}: The current date.
  • {nluser}: The currently logged-in user’s ID.
  • {nlrole}: The currently logged-in user’s role ID.
  • {useremail}: The currently logged-in user's email, though its availability in custom field formulas may vary.
  • {nlversion}: The NetSuite version number, which may be accessible depending on the specific NetSuite environment.
  • {nlsessionid}: The browser's session ID, potentially useful for web service integrations, though its direct availability in custom field formulas may vary.

Expert NetSuite Support

Need help with this NetSuite issue?

Custom Fields, Records & Forms consulting and configuration support

Talk to a consultant