Initially create a data set based on the requirement. Then, apply this data set to a workbook.
Please follow the below code to load the workbook to a suitelet
- Import the N/workbook module to the script.
2. Code for load the workbook
var myWorkbook = workbook.load({
id: myWorkbookId //Id of the workbook
});