Browsed by
Tag: netsuite

SuiteScript 2.0 Dialog Prompt + On SaveRecord

SuiteScript 2.0 Dialog Prompt + On SaveRecord

One of the new modules in Suitescript 2.0 is the “N/ui/dialog” module but unfortunately it doesn’t include a prompt method. I did some digging and found that the dialog module uses Sencha Ext JS. Since Ext JS doesn’t require the dialog module it can run on both SS 1.0 and 2.0! Here’s how they look like side by side: Here’s the code sample on how to achieve this (Works on both SS 1.0 and SS 2.0):

Additionally, thanks to this…

Read More Read More

Getting Item Earliest Available Date Programatically

Getting Item Earliest Available Date Programatically

I was browsing through the Netsuite user group and I stumbled upon this interesting question: I have a client that wants to automate the process of checking/calculating the ‘Earliest Available Date’ from the ‘Check Item Availability’ feature on the item level of a sales order. I know that this calculation is done using the ATP lead time, but I am not sure how to initiate this calculation via SuiteScript or Saved Search. I have shown this issue to NetSuite support…

Read More Read More

Convert Salesforce Ids from 15 to 18 characters using Javascript

Convert Salesforce Ids from 15 to 18 characters using Javascript

I figured this will be useful for anybody working with Salesforce. I used this within Netsuite and worked beautifully. Here’s the code: