Questions tagged [suitescript]

SuiteScript is a JavaScript-based API that gives developers the ability to extend NetSuite beyond the capabilities provided through SuiteBuilder point-and-click customization.

SuiteScript is the NetSuite platform built on JavaScript that enables complete customization and automation of business processes. Using the SuiteScript APIs, core business records and user information can be accessed and manipulated via scripts that are executed at pre-defined events. For example, field change, form submit, before read, before write, or Web requests. They can also be scheduled to run at specific times.

SuiteScript is comprised of several components enabling the most useful customization in SaaS:

  • Suitelets — Extensions to SuiteScript let you build a custom interface that is hosted within the NetSuite framework. Suitelets allow for completely custom HTML, Flash or NetSuite-based front-end development that can be build from scratch or by leveraging revolutionary SuiteScript UI Objects. Suitelets can also serve as the back-end for external HTML interfaces, providing complete flexibility in developing application extensions to NetSuite.

  • SuiteScript UI Objects — Serve as extensions which let you build a custom interface that runs invisibly within the NetSuite framework.

  • Portlet SuiteScript — Scripted Dashboard portlets allow for listing of any NetSuite content on the Dashboard or inclusion of external data-feeds via RSS, HTML or Flash, as well as Web 2.0 mashups (e.g. instant messaging, maps, blogs, more) via embedded Inline HTML fields, or iFrames.

  • Scheduled SuiteScript — Facilitates business process customization via JavaScript extensions and allow for records to be processed as a scheduled batch to automate workflows such as re-assignment of stale leads, drip-marketing or scheduling of collection calls based on days overdue.

  • User Event SuiteScript — SuiteScript can be used to enforce data validation and business rules. User Event SuiteScripts are triggered as users work with records and data changes in NetSuite as they open, edit or save records.

  • Client SuiteScript — Field-level calculations, alerts and business logic are facilitated by SuiteScripts which run within the user's browser as they work with data and records within NetSuite. Additionally Server SuiteScript APIs can be invoked via the Client SuiteScript code to apply business logic beyond a single record.
  • 1434 questions
    2
    votes
    1 answer

    NetSuite: How to Reference Custom Fields in Grouped Invoices Using Advanced PDF/HTML Templates

    We are using NetSuite's Advanced PDF Template for Grouped Invoices to print groups of invoices and need to include an existing custom field (custbody_subscription_name from the invoice header) on each invoice row in the invoice group. We can add…
    A2MetalCore
    • 1,621
    • 4
    • 25
    • 49
    2
    votes
    2 answers

    Operators 'and' & 'or' on filters SuiteScript 2.0 (NetSuite)

    I need to make conditions on my filters in my search. I have browsed through a lot of forums without finding functional solutions. After many inconclusive tests, I come to you for help. My code : function retrieveVendor(vendorValues){ var…
    MisterFring
    • 41
    • 1
    • 5
    2
    votes
    1 answer

    NetSuite Suitelet Sublist Paging Handling Method and Top Page Index List Position Adjustment

    Hello NetSweet developers. I am a beginner developer who has just been responsible for NetSuite development at our company. I have one question. I developed a search page using Suitelet. Therefore, we succeeded in injecting the result into the…
    JHCHO
    • 43
    • 1
    • 5
    2
    votes
    1 answer

    Use ONLY the external id of an item to create an invoice in Netsuite using Suitescript

    Is it possible to create an invoice using item's external id and not internal id using a Restlet? I can accomplish this in Postman like this: "item": { "items": [ { "amount": 120.0, "item": { …
    raGs
    • 23
    • 4
    2
    votes
    1 answer

    Pay an Invoice (Paid in Full) in NetSuite using RESTlet

    I am trying to pay an open Invoice in NetSuite. My aim is to pay the Invoice and for it to return the Status 'Paid In Full'. I am able to create a Customer Payment record quite easily using the code below but I don't seem to be able to assign the…
    Mark
    • 778
    • 2
    • 11
    • 21
    2
    votes
    1 answer

    SuiteScript - removeLine not removing last line

    I have created a pageInit SuiteScript that should remove line items on a Sales Order if they have a custom field filled out. The issue I am having is that it will not remove the line if it is the last line and no other line has a value for…
    2
    votes
    1 answer

    Netsuite SDF Deploy Error - Gateway Time-Out

    I am currently trying to setp-up an SDF Project for my NetSuite account. I've worked through a number of validation/deploy errors but now when I deploy it runs for about 10 minutes and then gives this error: The remote server returned an…
    tendies
    • 31
    • 3
    2
    votes
    1 answer

    How do I load a file from FileCabinet in SuiteScript

    I want to import a csv file using a saved csv import in suitescript. For this I'm testing my code in the script debugger. I successfully did this in Suitescript 1.0 like this: var import1 = nlapiCreateCSVImport();…
    2
    votes
    1 answer

    Programmatically edit approval status of vendor bills using NetSuite SOAP API

    I was trying to update the approval status of a vendor bill record in NetSuite using NetSuite SOAP API SDK for Java. I am using 2017_2 WSDL. RecordRef approvalStatus = new RecordRef(); approvalStatus.setName("approved"); VendorBill bill = new…
    Nikhil K R
    • 677
    • 1
    • 9
    • 19
    2
    votes
    2 answers

    SuiteScript 2.0 file.load method does not accept relative path of a .xml file

    I have developed a Suitlet script that, in particular, loads an .xml file for further processing using the file.load method with an absolute path. I want to use a relative path, but when I do so, it won't work. Basically, I'm providing the file.load…
    2
    votes
    2 answers

    Netsuite Script beforeLoad record not being modified

    I trying to modify a Purchase Order when a user opens it. This seems like this is a really simple example but doesn't seem to work. In the GUI I don't see the "test" memo. And in the script debug the memo field is empty. I know the script is…
    Patrick_Finucane
    • 725
    • 1
    • 7
    • 24
    2
    votes
    0 answers

    How to Extend the response time of the 3rd party URL in netsuite? i.e., to avoid SSS_REQUEST_TIME_EXCEEDED for large requests

    My POST request to a 3rd party URL is taking about 58 seconds(Checked this by testing it using postman). But netsuite is giving SSS_REQUEST_TIME_EXCEEDED error if the response time exceeds 45 seconds.What are the settings to be done to make netsuite…
    2
    votes
    1 answer

    RCRD_DSNT_EXIST while creating user event script with aftersubmit function

    I'm trying to write a user event script which loads the current record and populates a line item value through search after submit record. But, it is giving an error RCRD_DSNT_EXIST, even though the record exists. function afterSubmit_SO(type){ …
    2
    votes
    1 answer

    NetSuite Suitelet add select field based on saved search or custom field

    I know that I can use form.addField to add a select field with a list of records by adding it as a source in the addField method. I'm trying to show a list of customers that is filtered and only shows the name an not the id. What are my other…
    Gus
    • 45
    • 5
    2
    votes
    0 answers

    How to generate GUID automatically in Suitescript

    How to generate GUID automatically in my suitelet(which is used for encryption & decryption). Currently i am calling another suitelet manually by opening the link , which has a form to generate GUID and then i manually harcoded that value in my…
    hem
    • 195
    • 1
    • 15