Questions tagged [netsuite]

NetSuite is a vendor of business management SaaS. The platform's scope includes ERP, CRM, PSA, and Ecommerce. Primarily tailored to mid-market companies.

Netsuite is a software platform founded in 1998 that provides a number of business related services targeting mid-market companies, as well as divisions of larger enterprises. As a platform it is highly customizable through a Javascript-based API called SuiteScript.

4709 questions
3
votes
1 answer

Referencing custom AMD Modules in SuiteScript 2.0

Netsuite says to include the module id when creating custom modules like so: define(module_id, [dependencies], function) However when I do the module is not found: TypeError: Cannot read property "XPELPCenterModule" from undefined…
xpeldev
  • 1,812
  • 2
  • 12
  • 23
3
votes
1 answer

SuiteScript 2.0: How to write efficient code?

I am new to SuiteScript and want to make our code more efficient. Looking at our code it seems there are many script of the same type for the same record type. For example, 3 clientscripts on a sales order. Is it bad practice to roll all of these…
Tom Hanson
  • 873
  • 10
  • 39
3
votes
2 answers

suitescript 2.0 module does not exist error user event script

I am trying to run this suitescript 2.0 user event script but it always throws an error {"type":"error.SuiteScriptModuleLoaderError","name":"MODULE_DOES_NOT_EXIST","message":"Module does not exist: /SuiteScripts/Usr event 2.0.js","stack":[]} the…
Saurabh More
  • 383
  • 4
  • 25
3
votes
1 answer

Get Internal id for country list in NetSuite SuiteScript 2.0 by passing the country code

Invested lot of time to get the internal Ids of country list in NetSuite, could not find a standard way. if anyone knows any better way to do it please post in the comment function getCountryInternalId(code){ var internalId = ''; var…
Pushpak Gupta
  • 81
  • 1
  • 7
3
votes
1 answer

Implement eager loading in Netsuite SuiteScript 2.0, with pagination and date range filtering

I would like to (eager) load a list of customers in netsuite that has been updated between 2 date/time range and have the results paginated. I am relatively new to NetSuite SuiteScript 2.0, so I've implemented the lazy loading mvp version that works…
Latheesan
  • 23,247
  • 32
  • 107
  • 201
3
votes
1 answer

How to remove duplicate elements in a array using freemarker?

I had written the code for finding duplicate elements in C but now I am stuck at implementing the same code in freemarker Can anyone help? int n, a[10], b[10], count = 0, c, d; printf("Enter number of elements in array\n"); scanf("%d",&n); …
marg
  • 91
  • 1
  • 12
3
votes
1 answer

In netsuite advanced pdf templates is there anyway to Limit characters in a string

I need to Limit the characters in this field ${label.displayname} around 40.
marg
  • 91
  • 1
  • 12
3
votes
1 answer

User credentials required: Google Cloud Print Submit API

I am trying to access the Submit API that is apart of the Google Cloud Print however I am running into the error "User credentials required". I am able to get all the way through authentication and am able to retrieve my access token. I was…
3
votes
3 answers

How to set sublist value using client script in 2.0 Netsuite SuiteScript

How to set sublist value when using in client script. I tried all the method but it's not working and returning the same error. fieldChanged: function(context){ var record = currentRecord.get(); //var record =…
Anurag Kumar
  • 165
  • 1
  • 6
  • 17
3
votes
2 answers

How to get Sales Order 'shipaddresslist' value from Transaction Saved Search/Suitescript Search?

In Netsuite, the Sales Order record type contains a field called "shipaddresslist" which contains the Customer Address Internal ID associated with the selected Customer Address. Unfortunately, there is no search column for Sales Orders that will get…
3
votes
2 answers

For NetSuite Map/Reduce script - Why is map stage failing when being called from Restlet?

In NetSuite, have a Restlet script that calls a deployed map/reduce script but the map stage shows as Failed when looking at details of status page (the getInputData stage does run and shows as Complete). However, if I do a "Save and Execute" from…
3
votes
1 answer

NetSuite Unexplained Error : "An unexpected SuiteScript error has occurred"

I'm trying to understand why ever time I save a particular custom record type, I get an error screen saying "An unexpected SuiteScript error has occurred", and nothing else. It started happening suddenly. I turned off all known applicable scripts…
Michael McCauley
  • 853
  • 1
  • 12
  • 37
3
votes
1 answer

How to render "Transaction Forms PDF Layouts" in NetSuite

I am able to render Advanced PDF template/Email Template but not Transaction Forms PDF Layouts. I tried below: var renderer = render.create(); renderer.setTemplateById(104); var fileObj = renderer.renderAsPdf(); But I get Missing_PDF_Parameter…
NetSuite Help
  • 218
  • 3
  • 12
3
votes
1 answer

SuiteScript: before Submit (Set sublist Value using user event script)

I'm able to get values but not able to set sublist values in user event script beforeRecord submit. Looping through every line item to get the satisfying condition, when it come's to set value, I couldn't. am I passing wrong value or something? I'm…
Harish
  • 189
  • 2
  • 13
3
votes
1 answer

How can I check permission a user has on the current record on NetSuite with SuiteScript?

We are programming a script on NetSuite to integrate with a third-party app. When you access a record (whether is View or Edit) we need to determine what kind of the permission the NetSuite user has over the record. I know by the documentation that…
nachoargentina
  • 730
  • 7
  • 13