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
0
votes
1 answer
Unable to post Vendor_Payment for NetSuite using Restlet (SS2)
I have written below logic to post payment for a specific bill. I am however getting the error
INVALID FIELD VALUE","details":"You have entered an Invalid Field
Value 129 for the following field: account"
I can see this account available, I…

Ashish Gupta
- 1,651
- 14
- 30
0
votes
1 answer
How do you create a valid Zip file in SuiteScript 2.0
I am currently having an issue creating a valid .zip file in SuiteScript 2.0.
Currently i am using the file module to create a file:
var zipFile = file.create({ // create zip file from 3 loaded files above
name: 'bsb_zipped_files.zip',
…

SgtGrarm
- 131
- 7
0
votes
1 answer
SuiteScript 2.0 setValue not allowed in the current subrecord
I'm trying to set a value for the sublist 'addressbookaddress'. But the script fail with error. However, I'm able to get the subrecord value.
Error:
Not supported on the current subrecord: CurrentSubrecord.setValue.
Executed…

J Net
- 3
- 3
0
votes
2 answers
suitescript 2.0 upload image to netsuite file cabinent with watermark attached to image
Trying to create an html5 form that uploads an image and automatically adds a watermark. Then it would upload said image with watermark to my netsuite filecabinent. Can this be done via suitescript? If so, any help would be appreciated.
Thank you…

Dominic Ceraso
- 11
- 5
0
votes
2 answers
How do I add lines of data to a Suitelet Sublist (serverWidget.createform.addSublist)
It seems that I am missing something when trying to add data to a form sublist I have created.
The sublist is populated with the first row of data, but nothing else.
I've tried to use the list object for the ui, but it seems to be separate from the…

VanMan
- 13
- 1
- 3
0
votes
1 answer
TypeError: Cannot find function find in object
This is frustrating. I thought the problem was the object being returned by the api response. Maybe it's in string so what I did was I copied the response from "postman" and paste it directly on the js. This way im sure that it's in object/array.…

Wondering Coder
- 1,652
- 9
- 31
- 51
0
votes
2 answers
Netsuite suitescript 2.0 load Record not Source, When Save Record get Error: Record has been changed
I'm user suitescript 2.0. In the custom Record Types, I build client-script to load 1 records from ITEM_FULFILLMENT.
var ffid = 123
var itemffo = record.load({
type : record.Type.ITEM_FULFILLMENT,
id: ffid,
…

Cristen Rafalko
- 85
- 1
- 9
0
votes
0 answers
Recover a field linked to another field in an automatic way
I'm new in netsuite and I have to prove myself front of my boss.
My problem is how can I get to a sublist and retrieve a field linked to another field in an automatic way when creating a new line.
function taxCode_fieldChanged(context) {
var…

spring_flower
- 71
- 1
- 1
- 9
0
votes
2 answers
Memorized transaction in Netsuite using SuiteScript
Netsuite provides a way in which we can create memorized transaction using the application or front-end... Is it possible to create a memorized transaction in netsuite using suitescript 2.0.?

PraKhar
- 119
- 1
- 9
0
votes
2 answers
SuiteScript 2.0 Transaction Saved Search Filter
I have created a saved search for transaction in netsuite and with suitescript 2.0 I am showing saved search data in my application. In application user can apply filter on any fields (please see the attached screenshot). For example user select…

user2626026
- 21
- 3
- 8
0
votes
1 answer
Unable to create simple Inventory Adjustment: invalid field for customer?
Why, when I attempt to create an Inventory Adjustment I get the error:
You have entered an Invalid Field Value 12112 for the following field: customer
I can confirm that that customer entity id is valid and that they are part of the correct…

sazr
- 24,984
- 66
- 194
- 362
0
votes
1 answer
Getting data in timesheet grid via SuiteScript
I have the following script, applied to the Timesheet record, which gets called when a change event occurs for any field on a Timesheet record. This works perfectly on a body field, but it fails on the fields inside the timegrid (a child of the…

Harry Manback
- 1
- 1
0
votes
1 answer
NetSuite: An error occurred while processing item options
I am loading, doing some changes, and saving a Sales Order. I do this on approve and everything works. I do this on edit (when the status is changed to Pending Approval) and it throws the above error:
"An error occurred while processing item…

TMann
- 751
- 2
- 11
- 33
0
votes
1 answer
NetSuite Intercompany Drop Ship Freight
We are continuing to implement our NetSuite application and we have run into an issue. When there is an intercompany drop shipment order, the freight that is on the original sales order does not transfer to the paired sales order. Does anyone have…

Brad D.
- 47
- 1
- 8
0
votes
1 answer
NetSuite Restlet Run As Role?
Does anyone know how to have a restlet run as a different role? (e.g. similar to how Suitelets can be configured to run as the Administrator role)
Any tricks to make this possible?

angrycrab
- 830
- 1
- 9
- 23