Working with Product Configurations in NetSuite Commerce

Manage product configurations in NetSuite Commerce, allowing users to customize items and retrieve settings via REST API.

·2 min read·11 views·View Oracle Docs

Product configurations in NetSuite Commerce allow users to gather their selections for customizable items. Each configuration is stored in a configuration record and attached to the main item during transactions. Understanding how to manage these configurations is essential for efficiently handling customizable product offerings.

How Are Product Configurations Managed?

To access the configuration record, users must click the Access Config Record button on the configured item line within transactions. Users with advanced permissions can view the configuration records and their IDs. For role assignments, administrators will find the settings in the Access subtab of employee records. It's important to note that users assigned an administrator role have advanced permissions by default.

You can also see the configuration ID directly within transaction details. Look at the Configurator Data line field for the configId parameter, which will provide you with the necessary identifier when dealing with transactions.

Retrieving Configuration Records with RESTlet

Configuration data is stored in a compressed format within the system and can be accessed using a RESTlet. To retrieve this configuration using client and server scripts, you need to pass the configuration ID as a parameter.

Client Script Example

In client scripts, use the _nHttps.post() method from the N/https module. The following example demonstrates how to format the request:

javascript
1const 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 Script Example

For server scripts, use the _nHttps.requestRestlet() method, as shown below:

javascript
1const 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));

Key Considerations

  • Ensure adequate permissions are set for users needing access to configuration records.
  • Familiarize yourself with the process of retrieving configurations via RESTlet to integrate flexible item options into transactions effectively.
  • Keep in mind that proper mapping of transaction line fields is necessary when using configurable items.

Key Takeaways

  • Product configurations allow users to customize items and make selections based on business logic.
  • Access configuration records easily through the transaction interface.
  • Utilize RESTlet endpoints for fetching configuration details via scripting.
  • Make sure to manage user roles and permissions effectively to streamline access.

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 →