Create Item Fulfillment from Sales Order using RESTlet

First fetch the particular sales order by internal ID which is passed by POSTMAN API as parameter. The following code is used. let salesOrderID = requestBody.salesorderid;            let salesOrderRec = record.load({                type : record.Type.SALES_ORDER,                id : salesOrderID, … Continue reading Create Item Fulfillment from Sales Order using RESTlet

Show a popup window to add the reason while changing the Price level field value

Code section to enter the reason when the user changes the price level field value to ‘Custom’. Use the below-mentioned code section in the ‘fielsChanged’ entry point of the client script fieldChanged: function (scriptContext) { try { if ((scriptContext.sublistId == ‘item’) && (scriptContext.fieldId == ‘price’)) { let currentRecord = scriptContext.currentRecord; let currentLine = scriptContext.line let… Continue reading Show a popup window to add the reason while changing the Price level field value

How to create a Project Task record through Suitescript

We can use a ‘Project Task’ record to track the progress of tasks, assign them to employees, and manage them through approval by supervisors/managers.These can be created via Suitescript as well. For this use the ‘N/record’ module and record.create() functionThe required fields for creating a ‘Project Task’ are:company: This is a ‘Project Name’ type field… Continue reading How to create a Project Task record through Suitescript

Fetch the workflow field values related to the record deployed in suite-script using a saved search

Recently I had to fetch the values of workflow fields from within a Suitelet that is triggered by a button action. Workflow fields can be updated based on field value updates in a NetSuite record but there is no direct way of fetching these values in a script. For this, I used a saved search… Continue reading Fetch the workflow field values related to the record deployed in suite-script using a saved search