Posted on November 24th, 2015 by Swaraj Gochhayat
In this tip i am going to create a button on a record. Clicking the button retrieves the necessary data from the current record and creates a PDF file. The created PDF will then be shown in a seperate window by using a Suitelet. 1. Create a suitelet with the following code to generate a pdf […]
Posted on November 24th, 2015 by Swaraj Gochhayat
To Create a folder and file in Netsuite’s file cabinet using suitescript. In this tip i am going to show how to create a folder and file inside Netsuite’s file cabinet. Nomally we can create a folder and upload files inside the same using Netsuite’s UI. But to do this in suitescript, we have to […]
Posted on November 24th, 2015 by Puja Roy
How to create a simple form for a new customer in NetSuite account (using Suitelet script) and then redirect to the newly created customer record? I want to create a suitelet form for a new customer record in Netsuite account using some common APIs. And, after creating the record form will be redirected to that […]
Posted on November 24th, 2015 by Puja Roy
First, I will add a button in ‘BeforeLoad’ event of ‘user-event script’. Here, nlapiResolveURL(type, identifier, id, displayMode) API is used to create a URL on-the-fly by passing URL parameters from within SuiteScript. nlobjForm.addButton(name, label, script) is used to create a button. nlapiLogExecution(type, title, details) logs an entry in the script Execution Log subtab, which appears on the Script Deployment page. […]
Posted on November 24th, 2015 by Richi Padhi
Hello SuiteScript coders! Here we are, with a small plugin, which will help you save some of your valuable coding time in finding out and writting the SuiteScript APIs while, creating scripts using Visual Studio or similar Javascript editors like Aptana/NetBeans. Lets find out how.. >> First of all “click here” to download the JS […]
Posted on November 24th, 2015 by Puja Roy
Let say, there is a script(SetValueAtSaveRecord.js) deployed for all records present in netsuite. But, there is a function(SetLocation() ) in that script which should be applied for a particular record(like transaction record). How to do this? First, we should check the common word comes in the url of that particular record loading page. […]
Posted on November 24th, 2015 by Puja Roy
In NetSuite, assistants contain a series of steps that users must complete to accomplish a larger task. With some assistants, users must complete the steps sequentially. In others, steps are non-sequential, and they do not all have to be completed. In these assistants, steps are provided only as guidelines for actions users might want to […]
Posted on November 24th, 2015 by Puja Roy
In this tip, we will see “How to get a CSV file of a particular search result via suitescript?” Let’s say, we have to search customer record to get these fields (Phone no. and Id). Then, on a button click, we will get the CSV file of that search result. Steps: 1. Search Customer record […]
Posted on November 24th, 2015 by Puja Roy
In this tip, we will see ‘how to set different columns of a table in a particular order’. In my project, there was a requirement like: Suppose, there is a suitelet script ‘CreatePriceListPdf.js’ to create a pdf file. In the pdf file, data is being displayed with different 4 columns (‘Item #’,’Item Name’,’Tax Schedule’,’Base Price’). […]
Posted on November 24th, 2015 by Puja Roy
In this tip, we will see, how to use custom formula for setting condition of any trigger on SuiteFlow actions. We can set custom formula using Javascript/Suitescript(Client Trigger) and using SQL functions(Server Trigger). Here, I am explaining with simple examples of SuiteFlow action. Suppose, there is a requirement such as- when an Item record is created, […]
Posted on November 23rd, 2015 by Richi Padhi
We can use the ‘nlapiCreateRecord’ Netsuite API to create any new Netsuite record via SuiteScript. This API seems very easy to use and understand for a Netsuite developer. But for some records we need to figure out why this API is not working or why is it throwing some error like ‘USER_ERROR’. While creating a […]
Posted on November 23rd, 2015 by Richi Padhi
As per my finding, Netsuite till now hasn’t provided any straight forward way (API) to implement jQuery in SuiteScripts. So, you need to follow a deceitful way to get the jQuery stuffs done in your Netsuite screen. In this Tip I’m going to show how to use a ‘jAlert’ in Netsuite screen, lets see how […]
Posted on November 23rd, 2015 by Richi Padhi
This tip demonstrates how to call a web service (internal/external) from a SuiteScript.You might have come across the ‘nlapiRequestURL‘ API, which is usually used for calling the Netsuite’s SuiteTalk web service from the SuiteScript itself. But this API can also be used for calling the web services which are not hosted in Netsuite or the externally […]