Questions tagged [suitescript2.0]

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.

API Reference

991 questions
2
votes
1 answer

How to install and push Netsuite bundle from eclipse , instead of creating a suitebundler

We have access to Netsuite production account but not to Sandbox account. I am creating roles,center tabs,workflows directly in Netsuite And for Scripts using the suitecloud plugin in eclipse to push the code into filecabinet. I am aware that we…
hem
  • 195
  • 1
  • 15
2
votes
1 answer

Open URL in new window netsuite suitescript 2..0

I have created a suitelet script. I want to run it in new window. For that i have created a custom button on sales order and passed a 2.0 client script function on button(to redirect to the suitelet). Currently the suitelet gets opened in same…
Saurabh More
  • 383
  • 4
  • 25
2
votes
1 answer

Add self-signed certificate to the Netsuite https module to access third party Web Service

Does anyone know how to create a request using Netsuite https module attaching a self-signed certificate file(.pem or .pfx extension) to an external Web service? I want to report invoices to Spain Tax registration entity (SII) automatically using a…
elotgamu
  • 43
  • 10
2
votes
2 answers

What's the difference of Standard and Dynamic modes in NetSuite?

Refer to the SuiteScript 2.0 API doc for NetSuite. To set a value of a sublist field, use the "Record.setSublistValue(options)" while in STANDARD mode. When working in DYNAMIC mode, set a sublist field value using the following methods one by…
skyline
  • 443
  • 9
  • 31
2
votes
1 answer

Can't create note record in Suitescript 2.0 but can in 1.0

Anyone have an answer why in client side SuiteScript 2.0, this code gives an error "Invalid transaction reference key 8355" but when I run the same call in 1.0 flavor, it works. Anyone have an idea as to why? SuiteScript 2.0…
Erick Smith
  • 937
  • 7
  • 27
2
votes
1 answer

item fulfillment to invoice

I'm trying to transform an item fulfillment to invoice. I created a custom field called "freight cost" and I"m trying to get the value of that field and transfer it over to the invoice and add two lines to the item sublist: "FREIGHT" and "HANDLING".…
CodeMonkey
  • 97
  • 2
  • 9
2
votes
1 answer

Access Transaction Type in SuiteScript 2.0

I'm new to Netsuite and SuiteScripting. I am trying to create a Search in SuiteScript 2.0 that will display Inventory Items based on a few filters. One of the filters I am trying to use is in the items related records. I am able to do this in…
2
votes
3 answers

Transformation from Sales Order to Item Fulfillment Error

I'm having some trouble transforming a sales order to item fulfillment. Here is my code: /** * @NApiVersion 2.x * @NScriptType UserEventScript * @NModuleScope SameAccount */ define(['N/record', 'N/log'], function(record, log) { function…
CodeMonkey
  • 97
  • 2
  • 9
2
votes
3 answers

netsuite suitescript 2.0 export(csv)

Is there a way to export search results using suitescript 2.0 in the same way when exporting from the Search page using Export(CSV). Netsuite Answers says that this can be done by building a CSV file, I would like to know if I can run the…
BobJakobs
  • 21
  • 1
  • 3
2
votes
1 answer

Is it possible to load an image from an image field into a PDF in SuiteScript 2.0

I am currently doing a field lookup for several fields from a parent record and populating the results into a body variable prior to converting to a PDF (xml to pdf) - this works fine but one of the fields is an image field and i can only get the…
SgtGrarm
  • 131
  • 7
2
votes
1 answer

How to debug SuiteScript 2.0 (RESTlet) in NetSuite Debugger?

I am trying to debug sample suitescript (2.0) in Netsuite Debugger, but getting error: TypeError: Cannot read property "length" from undefined (SYSTEM_LIBS$debugger.sys#2372) var SEARCHMODULE; /** *@NApiVersion 2.x *@NScriptType Restlet …
user2626026
  • 21
  • 3
  • 8
2
votes
1 answer

NetSuite SCA Trigger User Event

I wrote a before submit user event script to check a sales order and when a certain condition is present to check a box. Works fine from the NetSuite interface, but orders placed on SCA are not triggering the script. Any help would be greatly…
jk121960
  • 843
  • 14
  • 45
2
votes
2 answers

Netsuite SuiteScript 2.0 getSublistFields method not working

I have a User Event Script for an Invoice record (newRecord), stored as var record. In sandbox and in the browser console I use record.getSublistFields('sublist_name') which has always worked. We just ported the User Event Script from sandbox to…
Max
  • 119
  • 1
  • 8
2
votes
1 answer

SuiteScript hmac sha256

I'm actually working on a new project based on netsuite product. I'm trying to encrypt a message using hmac sha256. What's is the simple way to do it considering that I have the stringToEncrypt and a key. I've read the documentation in Netsuite but…
Arigui Ahmed
  • 393
  • 6
  • 14
2
votes
1 answer

NetSuite SuiteScript 2.0 invalid_fld_value when setting sublist field value

I'm using the NetSuite Contracts Renewals module and trying to make a NetSuite User Event script (SuiteScript 2.0) that sets a custom field value on the Contract Item record based on the original sales order. The script works fine when I edit/save…
MBguitarburst
  • 267
  • 1
  • 7
  • 21