List of Functions
The following table classifies functions as client-side, server-side, or both. Any function marked with Yes in both columns is a universal function.
The table also contains information about governance usage units for server-side functions. Because NetSuite CPQ Configurator is a Suitelet, each server-side action can use up to 1,000 usage units. However, some units are used to launch the action itself, so the maximum usage units allowed for each server-side action is 927. Depending on the record type, the governance units used vary:
-
Transaction records - Use 10 units each.
-
Custom records - Use 2 units each.
-
All other records - Use 5 units each.
In the table, these units are referred to as record type units.
For more information about governance usage units in NetSuite, see SuiteScript Governance and Limits.
|
Function |
Description |
Client- |
Server- |
Governance Usage Units |
Help Topic |
|---|---|---|---|---|---|
|
add |
Adds an additional item to the current configuration and includes it in the transaction when submitted. |
Yes |
- |
- |
|
|
addLink() |
Adds a clickable URL to the product interface's Link section. |
Yes |
- |
- |
|
|
addMaterial() |
Adds a material item to the list of active materials in the current configuration. |
Yes |
- |
- |
|
|
add |
Sets up a listener to handle incoming messages in the current window. |
Yes |
- |
- |
|
|
addRuleset() |
Adds building blocks such as items, materials, or validations to the configuration session based on specified rules. |
Yes |
- |
- |
|
|
ajax() |
Performs HTTP requests to send or receive data from a server and supports both synchronous and asynchronous modes. |
Yes |
- |
- |
|
|
change |
Modifies a single answer attribute within the configuration using specified parameters. |
Yes |
- |
- |
|
|
closeConfig() |
Closes the configuration window or frame without submitting any changes. |
Yes |
- |
- |
|
|
copyRecord() |
Creates a new record by duplicating an existing one and optionally updates specified fields. |
- |
Yes |
Record type units × 3 |
|
|
createEvent() |
Creates a synchronization event for coordinating asynchronous actions and callbacks. |
Yes |
- |
- |
|
|
create |
Creates a new record with the specified data and field values. |
- |
Yes |
Record type units × 3 |
|
|
create |
Creates multiple records at the same time using a provided list of field values. |
- |
Yes |
Record type units × 3 × Number of records to be created |
|
|
createTable() |
Generates a table in the configuration interface with the specified columns and rows. |
Yes |
Yes |
None |
|
|
customizeUI() |
Modifies the look and feel of the submit modal or a question modal. |
Yes |
- |
- |
|
|
deleteEvent() |
Deletes a previously created synchronization event from the current session. |
Yes |
- |
- |
|
|
deleteFile() |
Deletes a file from the File Cabinet. |
- |
Yes |
|
|
|
delete |
Deletes a record of the specified type from the database. |
- |
Yes |
Record type units |
|
|
evalRule() |
Evaluates a rule and returns the result based on current configuration data. |
Yes |
Yes |
None |
|
|
findList() |
Retrieves metadata and content for a static or CSV product table. |
Yes |
- |
- |
|
|
get |
Retrieves the answer code for a given question. |
Yes |
Yes |
None |
|
|
get |
Retrieves the description for an answer. |
Yes |
- |
- |
|
|
get |
Retrieves the label for a specific answer. |
Yes |
- |
- |
|
|
get |
Retrieves the name of a specific answer. |
Yes |
- |
- |
|
|
getAnswers() |
Retrieves all selected answers for a particular question. |
Yes |
Yes |
None |
|
|
get |
Retrieves the codes of all selected answers for a question. |
Yes |
Yes |
None |
|
|
get |
Retrieves the value of the custom variable associated with the answer. |
Yes |
- |
- |
|
|
get |
Retrieves processing context data within a configuration environment. |
Yes |
- |
- |
|
|
getData() |
Retrieves data based on given parameters. |
- |
Yes |
|
|
|
getEvent() |
Retrieves a previously created event object by name. |
Yes |
- |
- |
|
|
getEvents() |
Retrieves all event objects currently defined in the configuration. |
Yes |
- |
- |
|
|
get |
Retrieves available options for a NetSuite dropdown field,multi-select field, or list. |
- |
Yes |
Record type units + (Number of required options ÷ 10) + (Number of fields × 5) |
|
|
get |
Retrieves data or perform a task in a parent window. |
Yes |
- |
- |
|
|
getItemPrice() |
Retrieves pricing information for an item. |
- |
Yes |
(Number of price levels ÷ 10) + 5 |
|
|
getLineNum() |
Retrieves the line number associated with the configuration record. |
Yes |
- |
- |
|
|
getMovDate() |
Retrieves a date and time value from an answer and adds or subtracts days. |
- |
Yes |
None |
|
|
get |
Retrieves body and sublist field values of the transaction page from which users open the product. |
Yes |
Yes |
30 |
|
|
get |
Retrieves the value of body fields of the transaction page from which users open the product. |
Yes |
- |
- |
|
|
get |
Retrieves line field values for the Items sublist of the transaction page from which users open the product. |
Yes |
- |
- |
|
|
get |
Retrieves the field values of sublist belonging to the transaction page from which users open the product. |
Yes |
- |
- |
|
|
get |
Retrieves and parses a date and time value from a date and time field. |
Yes |
Yes |
None |
|
|
getProgress() |
Controls the status of a progress indicator associated with a configuration process. |
Yes |
- |
- |
|
|
getQTable() |
Provides access to a qTable object. |
Yes |
Yes |
None |
|
|
get |
Retrieves the number of remaining governance usage units. |
- |
Yes |
None |
|
|
getRuleset() |
Retrieves data for a group of NetSuite CPQ building block. |
Yes |
- |
- |
|
|
getTable() |
Provides access to a table object to retrieve data for any product table type. |
Yes |
Yes |
None |
|
|
getTable |
Loads table content from the database. |
Yes |
Yes |
|
|
|
getValue() |
Retrieves the value associated with a specific answer. |
Yes |
Yes |
None |
|
|
hasAnswer() |
Determines if a question has been answered with a specific answer. |
Yes |
Yes |
None |
|
|
hide |
Hides a message currently shown in the product interface. |
Yes |
- |
- |
|
|
hideModal() |
Hides or displays a tab or a group included in a popup window. |
Yes |
- |
- |
|
|
isAnswered() |
Determines if a question has been answered in the current configuration. |
Yes |
Yes |
None |
|
|
loadConfig() |
Loads a saved configuration. |
- |
Yes |
|
|
|
loadFavorite() |
Loads a saved favorite configuration. |
- |
Yes |
- |
|
|
loadFile() |
Loads files from the File Cabinet. |
- |
Yes |
10 |
|
|
load |
Retrieves a specific row from a static or CSV table. |
Yes |
- |
- |
|
|
load |
Retrieves multiple rows from a static or CSV table. |
Yes |
- |
- |
|
|
nresolve() |
Resolves the numeric value from a resolve expression. |
Yes |
Yes |
None |
|
|
priceMatrix() |
Wraps the object returned by |
Yes |
Yes |
See getItemPrice() |
|
|
process |
Creates items required by the configuration using active item creation records. |
Yes |
- |
- |
|
|
process |
Creates records required by the configuration using active creation records. |
Yes |
- |
- |
|
|
queryParent() |
Sends general communication requests from the current window to the parent window that has launched the script. |
Yes |
- |
- |
|
|
readFiles() |
Retrieves information for every file attached to a file question. |
Yes |
- |
- |
|
|
recalc |
Updates information about answers and building blocks. |
Yes |
- |
- |
|
|
removeLink() |
Removes a link from the Link section on the product interface. |
Yes |
- |
- |
|
|
renderView() |
Updates the product interface with the most recent data. |
Yes |
- |
- |
|
|
reset() |
Clears all answers given to a question or clears a specific answer. |
Yes |
Yes |
None |
|
|
resetTab() |
Clears a tab selection in the product interface. |
Yes |
- |
- |
|
|
resolve() |
Resolves a string that includes resolve expressions. |
Yes |
Yes |
None |
|
|
restartAction() |
Stops a server-side action and sends information to the client about whether to restart it. |
- |
Yes |
None |
|
|
runAction() |
Runs a specified action. |
Yes |
- |
- |
|
|
run |
Runs a previously created NetSuite saved search and returns the results. |
- |
Yes |
5 |
|
|
saveFile() |
Creates or updates a file in the File Cabinet. |
- |
Yes |
10 |
|
|
scopeApply() |
Updates the product interface. |
Yes |
- |
- |
|
|
scope |
Updates the product interface and refreshes building blocks. |
Yes |
- |
- |
|
|
send |
Sends messages from the current window to the parent window. |
Yes |
- |
- |
|
|
setAnswer() |
Sets a specific answer for a question. |
Yes |
Yes |
None |
|
|
set |
Converts a JavaScript Date object into the string format expected by a NetSuite CPQ date and time field. |
Yes |
Yes |
None |
|
|
set |
Changes the reference column associated with a popup table or a popup list. |
Yes |
- |
- |
|
|
setTab() |
Changes the active tab to the specified tab. |
Yes |
- |
- |
|
|
setValue() |
Sets or updates the value of a specific answer. |
Yes |
Yes |
None |
|
|
showAudit() |
Displays or hides the Audit button on the product interface. |
Yes |
- |
- |
|
|
show |
Displays a custom alert message on the product interface. |
Yes |
- |
- |
|
|
showModal() |
Displays a tab or a group in a popup window. |
Yes |
- |
- |
|
|
show |
Prompts users to select options from popup tables or popup lists; |
Yes |
- |
- |
|
|
sresolve() |
Resolves a value from a resolve expression and, if possible, converts it into a number |
Yes |
Yes |
None |
|
|
startConfig() |
Opens the configuration interface for the specified product using the provided information. |
Yes |
- |
- |
|
|
submitConfig |
Submits the configuration and determines what happens after the submission and where the configuration is submitted. |
Yes |
- |
- |
|
|
update |
Updates specific fields on a given record type without saving the record. |
- |
Yes |
Record type units × 2 |
Related Topics
- Working with Product Building Blocks
- Activating or Hiding Building Blocks with Rules
- Working with the Product User Interface
- Calculating the Final Pricing for the Configurable Item
- Including Additional Items Related to the Configurable Item
- Creating Work Orders for Configured Items
- Creating Items Required by the Configuration
- Creating Records Required by the Configuration
- Setting Transaction Body and Line Fields Based on Configuration Data
- Working with Product Configurations
- Including Additional Conditions in Rules and Actions with Predefined Answers
- Working with Configurable Subscriptions
- Customizing Products with Scripts Using Action Records and Functions