Adding HTML table to custom record

REQUIREMENT Need to add a HTML table to display the sublist details in view mode of record. SOLUTION Following is the code snippet to add the HTML table in the custom record under a custom tab. This is to be added in beforeload of user event script.

Adjusting the Tax Amount on the Invoice Item line

REQUIREMENT Client would like to develop a script that should adjust the Tax Amount on the Invoice Item line if the Gross amount is within 0.01 of a whole integer. So, this adjustment will round the Gross Amount to the nearest whole integer such that 19.99 ≈> 20 <≈ 20.01 Need to implement a script on the save… Continue reading Adjusting the Tax Amount on the Invoice Item line

User Event Script to update JSON file for Custom Commerce Categories : (SuiteCommerce MyAccount) SCMA

Scenario: We need to create a JSON file of custom categories that need to be displayed on the website, it is Suite Commerce MyAccount so there is no default feature for Commerce categories, so we have created a custom record for the same, and In this script we are creating a JSON file for storing… Continue reading User Event Script to update JSON file for Custom Commerce Categories : (SuiteCommerce MyAccount) SCMA

Script to send an automated email once the customer submits the return online

Requirement Set up an automated email system to send customers a confirmation email once they submit a return request online. This email will provide important information about the return process, including details about the Return Merchandise Authorization (RMA) and the return label. Create an automated email once the customer submits the return online of what… Continue reading Script to send an automated email once the customer submits the return online

Make a copy of vendor or customer records using user event script.

To make a copy of vendor or customer records, the create context type can be used instead of copy context type in the user event script. In the user event script, beforeSubmit(scriptContext) entry point is selected. It is because in the view mode of the record, “Make a copy” option is not available in the… Continue reading Make a copy of vendor or customer records using user event script.