Testing and Debugging the Conversion into Configured Items
Before writing the server-side script that starts the conversion into configured items, you can test and debug the process. With the debugger tool in the NetSuite CPQ Ecommerce Integration, you can identify and fix potential issues during the setup of the NetSuite CPQ Configurator product that stores the tasks for the conversion.
Based on the script type that can 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 the 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 1000 governance usage units assigned to Suitelets. Use this mode to identify possible issues on the server side when the 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 complete logs of the script.
To process the transaction several times, you can 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 the testing task.
-
Select the transaction that contains data to be converted into configured items.
-
Select the NetSuite CPQ Configurator product that contains the logic to convert configured item.
-
If you don't want to update the transaction, check the Don't submit box. This option applies to 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.