This article outlines a SuiteScript design pattern used to add a button to a transaction, entity or other scriptable page in Oracle NetSuite ERP. This article has an example button action to print something completely custom.
Our clients entrust us to help determine feasibility, offer expert advice, and options to stay as native as possible.
We take that responsibility very seriously and do as much diligence as possible before executing on any account customization.
NetSuite offers a few options for transferring inventory.
We typically advise that the one-step Inventory Transfer transaction be reserved for the Finance team to decrease items in a source location and increase them in a receiving location, all in one step.
Although the Transfer Order transaction does the same thing, we advise Transfer Orders be used in all other cases because they enable you to track items in transit between two locations.
They are also useful in scheduling and tracking the steps of the process.
One of our clients came to us with a requirement to print a custom PDF for an Inventory Transfer transaction.
This is one of those records for which, to date, NetSuite does not offer a print option.
We overcame this challenge by utilizing SuiteScript.
We built a (1) User Event script, (2) Client Script, (3) Suitelet and an (4) PDF / HTML file to do the job.
The following is not intended to be a lesson in suitescript theory or otherwise.
It's meant to serve as a general outline and comes with no promises or guarantees.
The user event script shown will add a button to the page.
You must also create the user event script record within NetSuite.
Line 15 attaches the client script to the form.
No script record is required for the client script.
Line 21 is the url path to the Suitelet script deployment.
The function is meant to fire an HTTP GET request to our suitelet with the record internal ID as a single parameter.
We choose to save the file with an XML extension in the SuiteScripts folder in the file cabinet.
In this example we used the addition of a button to allow user feedback to the system.
In this case the feedback was simply, build me a PDF.
We could have grabbed data from absolutely anywhere in the system or beyond.
We could have added charts, graphs and probably anything else you could have imagined.
If you need help doing more with your NetSuite instance, give us a call.
We're here to be your NetSuite system experts.
This way you can remain focused on the needs of your customers and growing your business.
Here's what we've been up to recently.
This article is relevant to you if you are running your business on Oracle NetSuite and would like to add an isolated custom note on a transaction line. This article demonstrates a simple end to end architecture to customize and extend the capabilities of NetSuite.
This article will be relevant for you if your company is using NetSuite ERP, uses standard inventory items and a new business requirement arises where you now need the functionality of Serialized or Matrix for an existing item.
From us to your inbox.