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
votes
1 answer
Sum of invoice amount based on currencies in netsuite pdf template
I want the sum of invoices based on their currencies in netsuite advanced pdf template.
I am expecting the below result

Addy
- 67
- 3
-1
votes
2 answers
List of records that shows system notes in netsuite
How to find out list of records that have system notes in netsuite? Please Help!
Is there any way to get list of records which have system notes?

Maria S
- 3
- 3
-1
votes
1 answer
NetSuite: Create button to send PDF of Invoice using SuiteScript
Create a Button on Invoice called SEND EMAIL using SuiteScript. Only show this button to View Mode and when User is Administrator.
If user click that button, it should send an email with Invoice PDF Attachment.

nexiv
- 1
- 2
-1
votes
1 answer
How to get values from XML data in SuiteScript 2.0? NetSuite
How can i access the credit sublist values in a for loop, from an xml string data. I am able to get to the //machine but i couldnt get to the CREDIT lines.
my XML:

4N335
- 267
- 2
- 29
-1
votes
1 answer
How do I save and submit form data in netsuite?
I need to save and submit the information for a form for enrollment > employees, each time it is filled out. I need to save and submit the information for a form for enrollment > employees each time it is filled out. I sent an image of where I want…

NiceGuy240
- 1
- 2
-1
votes
1 answer
How to delete all transactions Record of netsuite using map reduce script?
The transaction types will be dynamic.When I execute the map reduce script, all transactions record of netsuite will be deleted.

user16567833
- 1
- 1
-1
votes
1 answer
How to bill multiple Sale Orders into single Invoice in NetSuite SuiteScript
I am trying to create a invoice against multiple sales orders along with GL impact.
When I using below api that time multiple invoices are creating but i want only single invoice and with GL/accounting impact-
var invoiceRecord =…

Mr. Kamran
- 13
- 1
- 8
-1
votes
2 answers
SuiteScript Training - Reference Error Not Defined
new to SuiteScript and Javascript in general. Working on one of the trainings to disable a field if another is checked (or enable) and have the following function below. I am getting an error though stating an unexpected error occured in a script…
-1
votes
3 answers
Is there any way to optimize two for loops in Javascript?
I need to show the alert() through my client script, when some conditions met. But I couldn't print the record numbers which would be key information to the user that these specific records are causing the system to show an alert.
I have made a for…

4N335
- 267
- 2
- 29
-1
votes
1 answer
How can i show a pie chart using portlet script type(SuiteScript 2.0) in netsuite?and also How to include a HTML file in our portlet script.?
function() {
function render(params)
{
params.portlet.title = 'My Portlet';
var content = ''+
'

Mr Explorer
- 13
- 3
-1
votes
2 answers
Is there any function in Javascript for converting numbers (with decimal places) to words?
I want to convert a calculated amount to words.
For 2 to 3 decimal places, as the amount is in USD(e.g. 230.54) as well as Omani Riyals(e.g. 230.542).
I tried one function mentioned in Stackoverflow but it doesnt go for 3 decimal places.i.e Convert…

4N335
- 267
- 2
- 29
-1
votes
1 answer
Return error when try to remove or add a new sublist line
I need help to be able to turn SALES_ORDER into INVOICE but the sublist item has to be removed and add other value.
Error message : item_machine is not defined
-1
votes
2 answers
NetSuite: TypeError: log.debug is not a function in Client Script (SuiteScript 2.0)
I’m using N/Log module in Client Scripts in my bundle.
But got an error "TypeError: log.debug is not a function" in one of NetSuite Account that uses my bundle.
when I try to load N/Log module using the browser console N / log module is injected…

Kadavar
- 1
- 2
-1
votes
1 answer
How to query Salesforce from NetSuite SuiteScript 2.0?
How would you go about querying Salesforce from a NetSuite suitescript?

bogus
- 457
- 5
- 16
-1
votes
1 answer
How to update NetSuite through Salesforce?
How would you go about updating NetSuite through Salesforce.
I know that you would use NetSuite's RESTlet and Salesforce Apex code to connect the two, but how would you actually go about doing this in a step by step process?

bogus
- 457
- 5
- 16