ANS-0043 · SAVED SEARCHES & FORMULAS

How to Get the Logged-In User’s Internal ID in NetSuite Saved Searches?

Learn how to dynamically filter or display data based on the user currently viewing a NetSuite saved search, including employees and customer center users.

Short answer

To retrieve the internal ID of the currently logged-in user within a NetSuite Saved Search, use the `{me}` keyword. This dynamic value automatically populates with the user's internal ID, functioning correctly for both employees and customers accessing searches, such as those in the Customer Center.

Scenario

NetSuite users often need to create saved searches that display or filter results based on the individual currently viewing the search. This requirement applies to both internal employees and external customers who might access searches through the Customer Center, necessitating a dynamic way to reference the logged-in user's internal ID.

Solution

To obtain the internal ID of the user currently logged into NetSuite and viewing a saved search, utilize the {me} keyword. When included in a saved search's criteria or results, {me} dynamically returns the internal ID of the active user. This functionality is applicable for both employees and customers, such as when a customer views a search within the Customer Center.

Expert NetSuite Support

Need help with this NetSuite issue?

Saved Searches & Formulas consulting and configuration support

Talk to a consultant