Posts

Showing posts with the label #suitescript

Netsuite Tips and Tricks: How to Manage Bounced Email in Netsuite?

Hi All, I started this blog to help Netsuite community by providing tricks, tips , code and logic etc. I hope many of you like these post. I can see people from many countries are visiting my blog and I am very much thankful for that. Netsuite has functionality to manage Email Bounce automatically . Few are the features which I want to explain in this Feature: Hard Bounce:            One of the most important ways a marketer can develop a positive sender reputation is by avoiding sending email to invalid email addresses. To help with this, Netsuite tracks when an email message is returned due to invalid address. This is known as a hard bounce. In addition to keeping track of hard bounced email addresses , NetSuite tracks any address that has hard bounced from any email sent from Netsuite including transactional email. We can choose how long the bounce history of an email address is maintained . In the field marked Remove ...

Netsuite Tutorials: Do you know interesting fact about Employee, Contacts , Groups, vendors , customers , Partners, Other Name ?

Hi All, I have very interesting things to share with you related to Prospects , Customers, Contacts, Projects, Vendors , Employee and few more. Many People do not notice but these belong to same table called entity. What it means is that there will no 2  similar record. It means There will be no 2 same internal id , For Example : if we already have customer with internal id 2 then there will be no other entity with internal id 2. It can be 3 ,  4 ,5 etc but not 2. Why this is important to understand?    At Many places we use Vendor , employees and customer in same drop down.  Developer have to write logic to get details from vendor , employee , customer etc . Logic include making a function and then search which kind of entity it is and then load or search record's data. We can also use try catch to load or look up entity's data and use try catch inside catch also load or look up if another type of entity drop down have . Let me explain with ex...

How to use Lookup in Suite Script 2.0 in Netsuite?

Hi All, In this post I am going to write code about how to lookup in Suite Script 2.0. In Netsuite Suite Script 1.0 it is very easy to do lookup using nlapiLookupField but in Suite Script we have to use search module for this. Below is the code for look up: var fieldLookUp = search.lookupFields({                                             type: search.Type.CUSTOMER,                                             id: entityid,                                             columns: ['custentity2'...

How to search Custom Record in Netsuite Suite Script 2.0?

Hi All, This is my 100th post so I want to post something important and which very hard to find. We all know that Netsuite provide example code of search for native record or builtin record, But if you try to search for custom record then script will throw error. Previously Error message were very clean but now error messages are also becoming mess.  So coming to point, If we want to search built in record then use below code var arrSearch = search.create({                                                         type : search.Type.ITEM,                                                 ...

How to Set Line Item Values in Netsuite's Suite Script 2.0?

Hi All, Few days back I wrote about how to set Line Item Values in Netsuite Suite Script 1.0.Now in Suite Script 2.0 is totally different from Suite Script 1.0. Previously in Suite Script 1.0 we had ability to set line item directly using record.setLineItemValue/Text now they removed that but in Suite Script 2.0 we still have same functionality. So no need to select line before setting value , we can directly set the line item value. Please Note: To read our blog anytime use our Android APP . You can find jobs , referrals and freelancing jobs also.  To download Netsuite Guru App click . I wrote a before submit script and there I am able to set line item directly, if we use record.selectLine then JS_Exception was coming as below org.mozilla.javascript.EcmaError: TypeError: Cannot find function selectLine in object DeferredDynamicRecord. (/SuiteScripts/abhiLineTest.js#76) /**  *@NApiVersion 2.x  *@NScriptType UserEventScript  */ define(['N/reco...

Netsuite Script Usage Limits and How to deal with that?

Hi All, Today we are going to learn about usage and its limit.In Netsuite , processing large data or making report some times throw limit exceed error. **** Suite Script 2.0 api's usage will be updated soon. Don't forget to join our FB Group , Like our FB Page To read our blog anytime use our Android APP . You can find jobs , referrals and freelancing jobs also.  To download Netsuite Guru App click . What is Usage?  In Netsuite , there are records, custom records, list , etc which are object and has some worth to load that object or say get value of that particular object. Now there are many operations likes nlapiLoadRecord, nlapiSearchRecord etc etc in Netsuite which cost some value,  Consider it as single penny as one Usage , every operation required some penny as cost. For Example , nlapiSearchRecord operation cost 10 units usage,  and nlapiLoadRecord cost 10 for standard transaction records, 5 for non transaction standard record and...