Testing and Debugging the Conversion into Configured Items
Before writing the server-side script to start the conversion into configured items, you can test and debug the process. Use the debugger tool in NetSuite CPQ Ecommerce Integration to identify and fix potential issues while setting up the NetSuite CPQ Configurator product that stores the conversion tasks.
Based on the script type you use to start the conversion into configured items, three modes are available for testing and debugging:
-
Client script mode - Starts the conversion process into configured items from a client script. You can view detailed logs directly in the console. Use this mode to ensure that the product and its actions are properly set up to convert configured items with NetSuite CPQ Ecommerce Integration.
-
Suitelet script mode - Starts the conversion process into configured items from a Suitelet. You can view detailed logs in a separate browser tab. This mode is limited by the 1,000 governance usage units assigned to Suitelets. Use this mode to identify possible issues on the server side when your product logic is simple. For more information, see Script Type Usage Unit Limits.
-
Scheduled script mode - Starts the conversion process into configured items from a scheduled script. You can view the logs at Customization > Scripting > Scripts. In the Type field, select Scheduled and find the CPQE-SC-BCL scheduled script (customscript_cpqe_sc_bcl). Under the Execution Log subtab, you can view the script's complete log details.
To process the transaction multiple times, enter a number in the Counter field.
To create a testing task to verify the conversion into configured items:
-
Go to CPQ > eComm Integration > BC-Launcher.
-
Click New CPQE BC Launcher.
-
Enter a name for your testing task.
-
Select the transaction that contains the data you want to convert into configured items.
-
Select the NetSuite CPQ Configurator product that includes the logic for converting line items into configured items.
-
If you don't want to update the transaction, check the Don't submit box. This option is available in all the testing modes.
Use this option when you only want to verify the logs without changing the transaction.
-
Click Save.
-
Depending on the mode you want to use to test the product for the specified transaction, click one of the following buttons to start the testing task:
-
Client
-
Suitelet
-
Scheduled
-
-
If you chose the Suitelet mode and you want to process the transaction multiple times, enter a number in the Counter field.