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
0
votes
2 answers

Netsuite Phptoolkit Could not determine customer compid

Trying to get the customer information using phptoolkit Here's my code: function getCustomer(){ $service = new NetSuiteService(); $request = new GetRequest(); $request->baseRef = new RecordRef(); $request->baseRef->account_id = "252206"; …
0
votes
1 answer

What's the purpose of a Map/Reduce script? Pros and Cons?

What is the purpose for NetSuite's Map/Reduce script type? Can't a scheduled script accomplish anything that a Map/Reduce script can do? Is it merely a matter of an increased usage limit? What are the pros and cons for using Map/Reduce?
The Windhover
  • 312
  • 3
  • 16
0
votes
1 answer

Suitescript - How to know the fields ID in sub record - Inventory transfer

I'm trying to create a restlet that can create a bin transfer. My code is almost complete, I can create line item fields also. The only thing that I can't do is to fill up the inventory detail because I don't know the fields in Subrecords. How can…
jebeeee
  • 51
  • 1
  • 9
0
votes
1 answer

Save without triggering user event scripts in SS 2.0

In SuiteScript 1.0, when calling save we have the option to pass disabletriggers true to avoid running user event scripts from a scheduled script. In my case, I'm using SuiteScript 2.0, and trying to save a vendor record before attaching address and…
SnakeMan2058
  • 77
  • 1
  • 11
0
votes
0 answers

Insert Multiple lines using suitescript 2.0 in Bin number in NetSuite

I'm trying to insert multiple lines at a time by using record.insertLine() in SuiteScript 2.0 is that possible to do.
Harish
  • 189
  • 2
  • 13
0
votes
3 answers

Getting entity type in Netsuite SuiteScript

I am very new to NetSuite and I don't know if this makes sense. I have a requirement to send a rest call when an Invoice is created in NetSuite. I saw that it is achievable using SuiteScript using nlapiRequestURL…
Venkataraman
  • 151
  • 3
  • 10
0
votes
1 answer

Netsuite SuiteScript Caching Issue

I have deployed my RESTlet script (suitescript 2.0) and calling from my c# application. Initially script deployment status was "Testing" and any changes made in script were getting reflected in my c# application (as desired result). Just before some…
umesh shukla
  • 139
  • 3
  • 13
0
votes
2 answers

NetSuite: How to make http request sending cookies?

I need to call an external API to get some data from a SuiteScript file and I'm getting an issue. The GET call needs to go with credentials (basically, it has to go with the cookies in the Request Header). If I make the API call from the chrome…
nachoargentina
  • 730
  • 7
  • 13
0
votes
1 answer

SuiteScript 2 join queries

and thanks, I need to bring columns from a joining table in SS 2. The form that I am using for the column is searchModule.createColumn({ name: "class", join: "CUSTRECORD_NWP_ITMPRICE_ITEM" …
jk121960
  • 843
  • 14
  • 45
0
votes
1 answer

How to get the Vendor Name column from purchase order in suitescript 2.0

Disclaimer: I'm a NetSuite newbie. I need to return both the item and the vendor name for all items in a purchase order. I Googled around and found this search. The search works as desired. var purchaseorderSearchObj = search.create({ type:…
tmurphree
  • 79
  • 2
  • 11
0
votes
1 answer

SuiteScript 2.0 Apply Time Zone to field

I need to "GET" a date field from a "Record" and apply a timezone, in 1.0 it was just using the getDateTimeValue and passing the timezone as the second parameter. In 2.0 you only have the generic getValue and when passing the TZ as the second value…
jk121960
  • 843
  • 14
  • 45
0
votes
2 answers

Is there way to get System information (System Notes or History of changes) for the item line in a sales order via SuiteScript?

I'm writing simple User Event script (using beforeSave entry in my case) for the Sales Order which reads every item line in it and changes some values in the item line according to the given circumstances. The problem I've encountered: If some field…
Ivan
  • 35
  • 2
  • 7
0
votes
2 answers

Keep getting an error when trying to submit an Inbound Shipment via Netsuite Restlet

I keep getting the following error when trying to create a new Inbound Shipment record (new in Netsuite). {"type":"error.SuiteScriptError","name":"USER_ERROR","message":"Please enter value(s) for:…
shawleigh17
  • 1,147
  • 4
  • 22
  • 42
0
votes
2 answers

How to retrieve picked quantity for each of the item line in transfer order/sales order using Suitescript 2.0?

One of the columns in item list is "Picked" which is a picked quantity for the item line. But, I cannot find its field name. Then, I try to use the following coding to retrieve picked quantity (quantitypicked) of an item line from Transfer order /…
chwh
  • 1
  • 2
0
votes
1 answer

SuiteScript 2.0 return lines based on header fields

I recently started SuiteScript 2.0 development and am stuck on the following: Customer has a need for a custom form. The form has 3 header fields: location, week number and subsidiary. Depending on the values he enters in these three fields the…