Sunday, July 14, 2019

Determine a Saved Search's details by loading the search via SuiteScript through the browser's console

Determine a Saved Search's details by loading the search via SuiteScript through the browser's console

It is extremely helpful to see a saved search's filter and column details especially when one is trying to recreate this through script. Below is one way to this.

1. Open the browser's developer tools and choose console (Tip: A shortcut to open the developer tools is by pressing F12)
2. Load a saved search via SuiteScript

nlapiLoadSearch('<type'>, '<saved search internal or script id');

Notice that this will return an object. Open the object and the search details including its filters and columns will appear. By opening up the filters further, one will be able to see the filter details. The same goes for columns.

Note: User must be on a NetSuite page when doing this.

No comments:

Post a Comment