Benefits Of Custom Transaction Types

In your business, there may be a wide variety of events that can require an adjustment to your general ledger. For example, you may need to record adjustments for nonoperational income, such as interest income that your company receives through investments. Conversely, you may need to record debits for rewards you give customers through customer… Continue reading Benefits Of Custom Transaction Types

Case when you want to perform search in a role and that role has no permission for that record

Update the client script to send a GET HTTP request to a Suitelet that will run the search you want to run. Values can be passed using the URL parameters. For example: https. get.promise({   url: stSuiteletUrl + ‘&orderId=’ + stOrder }).then(function(response){   var objResponse = JSON.parse(response.body); }).catch(function onRejected(reason) {   console.log(reason); }); 2. Create the Suitelet that… Continue reading Case when you want to perform search in a role and that role has no permission for that record

Restrcit editing the record when try to edit by passing edit varable in url

  if (status === ‘Billed’ && scriptContext.type === scriptContext.UserEventType.EDIT) {                     log.debug(‘error’, ‘You cannot edit a Sales Order with status “Billed”.’);                     throw (‘You cannot edit a Sales Order with status “Billed”.’);          … Continue reading Restrcit editing the record when try to edit by passing edit varable in url

How to pass values to URL as params

try { openBoxFilterObj.itemName = openBoxObj.getValue({ fieldId: “custpage_itemname” }); console.log(“Item Name”, openBoxFilterObj.itemName); openBoxFilterObj.brandFilter = openBoxObj.getValue({ fieldId: “custpage_brand” }); console.log(“Brand Filter”, openBoxFilterObj.brandFilter); openBoxFilterObj.classFilter = openBoxObj.getValue({ fieldId: “custpage_class” }); console.log(“Class Filter”, openBoxFilterObj.classFilter); openBoxFilterObj.location = openBoxObj.getValue({ fieldId: “custpage_itemcurrentlocation” }); console.log(“Location”, openBoxFilterObj.location); console.log(“Open Box Filter Object”, openBoxFilterObj);; var initialURL = ‘https://359045.app.netsuite.com/app/site/hosting/scriptlet.nl?script=2097&deploy=1’; var params = “” for (var key in openBoxFilterObj)… Continue reading How to pass values to URL as params