SuiteScript 2.0 is the second version of the NetSuite SuiteScript API. SuiteScript 2.0 and SuiteScript 1.0 coexist at the moment, but cannot be used within the same script.
Questions tagged [suitescript2.0]
991 questions
1
vote
0 answers
Suitescript 2.0 - Creating an Inventory Adjustment From a Search
I'm trying to create an inventory adjustment from a loaded saved search. We have a placeholder item that goes into negative quantity and it needs to be adjusted back up a lot, so I'm attempting to automate the process. The code below so far works,…

Mikemacx
- 31
- 5
1
vote
0 answers
Can I use Suitescript SuiteQl to get the pnrefnum on a Cash Sale?
I am trying to use SuiteQL to get the pnrefenum on a Cash Sale. It is not coming back when I query the Transaction, and while I suspect that it is possible to retrieve it with a join, and have seen joined records in the Records Browser such as…

astr
- 473
- 1
- 3
- 13
1
vote
0 answers
Finding a reference to a NetSuite field's type using suitescript
I am writing suitescripts (currently 2.1) and one thing I am trying to do is to know what type of record a particular field on a record is. In suiteTalk this can be done via the recordRef's .type being looked at such as a Sales order's Entity…

jvoigt
- 400
- 4
- 23
1
vote
1 answer
SuiteScript with Intellisense in VS Code
I have the latest Visual Studio Code.
I have installed the latest SuiteCloud Extension for VS Code.
There is no intellisense.
I have also installed the SuiteNippets extension -- which is ok--but not full intellisense.
I am baffled as to why this is…

Donny Kwitty
- 327
- 2
- 15
1
vote
0 answers
How to apply a gift certificate to the sales order In NetSuite?
I want to apply a gift certificate to the sales order in Netsuite using the suite script. How it can be possible to apply a gift certificate to the sales order?

Yasir Minhaj
- 41
- 6
1
vote
1 answer
Is there any way to view/download the script/files that are hidden in SuiteBundle in Netsuite
I just want to know that is there any way to view or download the script/files that are checked as hidden in suitebundle in netsuite?
I have seen some suite bundles that have some files that are hidden. While downloading the bundle folder, I have…

Heera Verma
- 21
- 5
1
vote
1 answer
Netsuite - Suitescript 2.X: Inbound shipment "items" sublist update
I need to update a sublist ('items') field ('receivinglocation') on inbound shipment entry.
When i create an inbound shipment from user interface, i need to update all item line locations from a body field ('customlocation').
I've tried to do that…

Fabrizio 7 AM Enfant
- 13
- 2
1
vote
0 answers
How to set a Field Mandatory with a script
If an item is picked in the sublist, I need to make a field mandatory in a sales order form.
How can I do it, I was informed that with a Workflow I can't.
So I'll need to use suite script, how is the best approach to do it?
Can you tell me how to as…

JoaoPedroMachado
- 11
- 1
1
vote
0 answers
Load Custom Address Form in netsuite using suitescript 2.x
There is a requirement to load custom address form and access the form details from the NetSuite custom address form, I need to access the address template in custom address form. Is there any possible way to load the custom form?
user18950971
1
vote
2 answers
Userevent button to trigger clientscript and open suitelet
I have a button created with a userevent script which appears on a transaction record
This is supposed to trigger a client script on click which in turn is supposed to redirect to a suitelet.
So far, I am not getting an error message though it is…

Vernita
- 93
- 3
- 15
1
vote
0 answers
NetSuite OAuth 2.0 Client Credentials using Postman
I am trying to connect netsuite using Postman's get auth code functionality. According to NetSuite help center a POST request needs to be sent to the token endpoint with the JW token and grant type.
But if we go to postman and select Oauth 2.0…

Soumodip Mukherjee
- 11
- 2
1
vote
1 answer
file.load is returing "TypeError: Cannot call method "load" of undefined" on suitelet
Problem: I am trying to see if a file already exists in the file cabinet. If it does, the user gets a warning. If it does not, then the file proceeds to save. All components of these work except when I try to load the file I get the following…

adn
- 49
- 9
1
vote
3 answers
Tabulator AJAX-like Loader for JSON object data source
I'm currently utilising Tabulator 4.8 inside a custom NetSuite (suitelet) form, and it's working really well.
The reactive data feature is quite effective for what I'm doing which is a full replacement for NetSuite's Order Items page and subsequent…

Steve Reeder
- 980
- 16
- 42
1
vote
0 answers
NetSuite: how can the Bulk Process history be monitored for success/failure after a scripted process completes?
I have a map/reduce script which processes a queue of item receipts against various transaction types. For purchase orders and transfer orders, the load/transform/save of an item receipt returns with a new item receipt ID.
For inbound shipment…

Troy Thompson
- 11
- 2
1
vote
1 answer
Trigger a client script on a button clicked on a Suitelet?
I am trying to update the values on a custom record based on the button clicked on a suitelet
This will have 3 or 4 different buttons.
There is only one set up page that can be loaded on click of the button.
For example, 'recurring' is clicked on…

Vernita
- 93
- 3
- 15