Product Configurations in NetSuite Commerce: What's New

Learn about product configurations in NetSuite Commerce, including setup, permissions, and API usage for configurable items.

·2 min read·8 views·View Oracle Docs

The product configuration feature allows users to gather selections made for specific configurable items in NetSuite Commerce. These configurations are stored on a configuration record and can be attached to transactions when added. This enables businesses to better manage customizable products and enhances user experience during the purchasing process.

How Do Product Configurations Work?

When a user configures a product, their choices are captured in a configuration record. To access this record, the user can click the Access Config Record button located on the configured item line in transactions. Only users with advanced permissions can view the configuration record and its associated ID.

Setting Permissions

To manage role permissions for accessing configuration records, navigate to the Access subtab on the employee record. Select Advanced in the CPQ Configurator Permissions field to grant the necessary privileges. It's important to note that users assigned an administrator role automatically possess advanced permissions.

Viewing the Configuration ID

Users can also view the configuration ID directly on transactions. This ID can be found within the Configurator Data line field, specifically in the value for the configId parameter.

Managing Configuration Records Through Scripts

The configuration record contents are stored using a compressed format. To retrieve and utilize this configuration data, developers can use a RESTlet endpoint.

Client Scripts

In client scripts, you can make use of the _nHttps.post() method from the N/https module. Below is an example demonstrating how to retrieve the configuration based on its ID:

javascript
1"text-purple-400">const response = _nHttps.post({
2 url: _nUrl.resolveScript({
3 scriptId: 'customscript_cpqc_rs_maint',
4 deploymentId: 'customdeploy_cpqc_rs_maint'
5 }),
6 body: {
7 task: 'getConfiguration',
8 configurationId: 501
9 }
10});
11
12console.log('Parsed configuration: ', JSON.parse(response.body));

Server Scripts

For server scripts, the _nHttps.requestRestlet() method should be used. Here's an example for retrieving the configuration:

javascript
1"text-purple-400">const response = _nHttps.requestRestlet({
2 scriptId: 'customscript_cpqc_rs_maint',
3 deploymentId: 'customdeploy_cpqc_rs_maint',
4 method: 'POST',
5 body: {
6 task: 'getConfiguration',
7 configurationId: 501
8 }
9});
10
11console.log('Parsed configuration: ', JSON.parse(response.body));

This interaction directed through the RESTlet allows for dynamic handling of user-defined configurations, enhancing the customization available in transactions.

Who This Affects

  • Administrators: Responsible for setting up permissions for users.
  • Developers: Implementing custom scripts to manage product configurations.
  • Sales Teams: Utilizing product configurations to tailor offerings for customers.

Key Takeaways

  • Product configurations enhance the user experience by allowing customizable items in transactions.
  • Access to configuration records is controlled by role permissions, crucial for maintaining data security.
  • Developers can retrieve configurations programmatically using RESTlets to enhance functionality.

Source: This article is based on Oracle's official NetSuite documentation.

Frequently Asked Questions (4)

What permissions are required to access configuration records in NetSuite CPQ?
To access configuration records in NetSuite CPQ, users need advanced permissions. Administrators automatically have these permissions, while other roles need to have Advanced selected in the CPQ Configurator Permissions field on the employee record under the Access subtab before saving.
How is configuration data retrieved and stored in NetSuite CPQ?
Configuration data in NetSuite CPQ is stored in a compressed format on a dedicated configuration record. It can be retrieved using RESTlet endpoints through custom scripts, employing methods like _nHttps.post() for client-side scripts or _nHttps.requestRestlet() for server-side scripts.
Does the new product configuration feature in NetSuite CPQ affect transaction records?
Yes, the new product configuration feature links configuration records to transaction records when a configurable item is added, ensuring accurate data capture and improved transaction integration.
Can decompressed configuration data be integrated with external systems?
Yes, decompressed configuration data can be integrated with external systems using RESTlets, allowing for seamless integration with various business processes and applications.

Weekly Update History (1)

NetSuite CPQupdated

Moved the Working with Product Configurations help topic under NetSuite CPQ Configurator Products.

View Oracle Docs
Source: Working with Product Configurations Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in Commerce

View all Commerce articles →