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

    How to Customize the NetSuite Calculate Shipping Button

    How can I customize the Calculate Shipping button (the calculator icon) on Sales Orders under the Shipping tab? I've written my own app using the UPS API and I would like to fire that instead of the native NetSuite shipping calculator. So how can I…
    John
    • 302
    • 2
    • 23
    2
    votes
    2 answers

    Workaround to search Netsuite Note record by Customer id

    I'm trying to get an app I'm working on to display all associated user notes for a given Customer record (as it appears on the UI Customer record page in Netsuite proper). To that end, I've set up a Netsuite RESTlet to return a list of internal ids…
    2
    votes
    2 answers

    Pass variable from User Event Script to Client Script in NetSuite

    I am using 2 scripts to accomplish an email function in NetSuite. I have a User Event script that creates a button and a client script that pulls all the needed variables and runs the email based on a value found in the Sales Team sublist. Here is…
    Brad Simpson
    • 33
    • 1
    • 5
    2
    votes
    2 answers

    Netsuite Saved Search to Suitelet Sublist

    I am trying to populate a sublist in a suitelet with data from a custom saved search that I have already created. My problem is that the sublist is only populating data from fields that correspond to the "type" of saved search I am doing. For…
    L.B.
    • 35
    • 3
    • 9
    2
    votes
    2 answers

    NetSuite - Remove an item from a dropdown

    On NetSuite Items forms, I would like to remove some items of the dropdown list “Sub-Item Of” (field name "parent"), which currently displays all NetSuite Items. I've tried to create a User Event Script, on Before Load and use the API…
    Marcel P
    • 55
    • 3
    • 8
    2
    votes
    1 answer

    How to load items with SuiteScript Purchase Orders?

    Friends'm working with NetSuite and SuiteScript. I can save a purchase order running the script and also charge Purchase Orders created, but when I bring returns data item value as a null value, and I need to get the id of the item. The result gives…
    Chris2141
    • 37
    • 3
    • 10
    2
    votes
    3 answers

    How to refresh NetSuite sandbox code (only) from production?

    Refresh NetSuite sandbox from production (code only) I realize that we can refresh out sandbox from production but we don't want to refresh the entire sandbox, instead we want to refresh NetSuite SuiteScript, NetSuite Forms & UI Objects.…
    Rich Bianco
    • 4,141
    • 3
    • 29
    • 48
    2
    votes
    3 answers

    How to get currently logged in employee details in Netsuite using Suitescript when viewing customer?

    I need to get the currently logged in employee details like internal ID etc., When the employee views the particualar customer record. So that i can save the staff who actually visited lastly the customer in our own site.
    Vivek Keviv
    • 496
    • 4
    • 19
    1
    vote
    1 answer

    Transform TransferOrder into ItemFulfillment with error SSS_INVALID_SUBLIST_OPERATION

    I have a suite script (RESTlet): transform Transfer Order into Item Fulfillment on NetSuite /** * This SuiteScript RESTlet transforms a Transfer Order into an Item Fulfillment. * * u/NApiVersion 2.x * u/NScriptType Restlet * u/NModuleScope…
    1
    vote
    1 answer

    Can I use the types of a yarn module with a local module?

    So my actual import is lib/day but I want to use the types I would get from dayjs. So if I use: import * as day from "dayjs" I get the right types but my code won't compile (it's using the suitescript api so I need to host it locally). If I…
    EliBaum
    • 35
    • 3
    1
    vote
    2 answers

    In Netuite, is it possible to run a suitescript when a standard button is pressed?

    In Netsuite, I want to run a suitescript when a standard button on a transaction record is pressed. Example 'Mark Shipped' button on item fulfillment. Is it possible? I have tried a client script but it works only when you edit the record.
    Abhi Raj
    • 13
    • 2
    1
    vote
    0 answers

    SSS_USAGE_LIMIT_EXCEEDED on CSV import

    This is in a Netsuite environment, using a User Event Script in Before Submit, on a CSV import that has a LOT of similar User Event script As title, I'm getting this error on specifc large CSV file. What's interesting is that the Execution Time is…
    T_lastname
    • 122
    • 9
    1
    vote
    1 answer

    SuiteCommerce Advanced 2019.2 set custom field on quote/estimate creation

    I'm working with a SuiteCommerce Advanced 2019.2 website. I need to set a custom field when a quote is created using the Create a Quote feature. What's the best way to do this? Do I need to make a new SuiteScript model to extend the Quote.Model or…
    Gus Larson
    • 13
    • 2
    1
    vote
    1 answer

    How to create CSV file in netsuite with base64 content?

    I am downloading a file from the web, I need to save him in the file cabinet, but when I save it its an empty file (0kb). let response = https.get({ url: url }); log.debug('response', JSON.stringify(response.body)) //getting the file…
    Davidna
    • 47
    • 10
    1
    vote
    0 answers

    How do you change the source list of a customlist field in SuiteScript

    I am trying to change the source list of one customlist field for an item, when a value on another list is selected. For example if list one is selected as "dairy", I want the options in list two to be "milk, yogurt, etc.", but if I chose "protein",…