First get sales order internal id and transform to item fulfillment stage. Then save the item fulfillment record. let salesOrderRec = record.load({ type : record.Type.SALES_ORDER, id : salesOrderID, isDynamic : true … Continue reading Create item fulfillment from sales order
Author: Shanmugapriya Ganesh
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
Change Date Format in suitescript
If you want to change the date format in suitescript the following sample will be used. First load the N/format module Then pass your date field into Date function like let dateField=new Date(lastDonateDate); Then assign your date format into a varaible, let… Continue reading Change Date Format in suitescript
Add Warning Message in Sales Order using UserEvent Script
If you want to show warning message in sales order when selecting a particular checkbox, use the following code in UserEvent Script. Must include the module N/ui/message and give newRec type is sales order. let newRec=scriptContext.newRecord. let cusField=newRec.getValue({fieldId:’fieldid’}); if(cusField) { let myMsg =… Continue reading Add Warning Message in Sales Order using UserEvent Script