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
    -1
    votes
    1 answer

    How to get values from XML data in SuiteScript 2.0? NetSuite

    How can i access the credit sublist values in a for loop, from an xml string data. I am able to get to the //machine but i couldnt get to the CREDIT lines. my XML:
    4N335
    • 267
    • 2
    • 29
    -1
    votes
    1 answer

    Is there any way with suitescript 1.0 to run a server side function on a client script (like getFieldText)?

    I was writing a client script for work and part of it involved getting getting the value of the cost category's text to display to the user. Unfortunately, that seems to only be a server side function. I've seen some posts about how to accomplish…
    Nick the coder
    • 309
    • 3
    • 8
    -1
    votes
    1 answer

    SuiteScript: How can I change the value of the field when a specific date/time is reached?

    I'm new to SuiteScript, and I have a requirement to automatically change the value of a field, if a certain date and time is reached. E.g., when start date and start time arrives, change the value to 'on-going'. When the end date and end time…
    -1
    votes
    1 answer

    How do I save and submit form data in netsuite?

    I need to save and submit the information for a form for enrollment > employees, each time it is filled out. I need to save and submit the information for a form for enrollment > employees each time it is filled out. I sent an image of where I want…
    -1
    votes
    1 answer

    How to delete all transactions Record of netsuite using map reduce script?

    The transaction types will be dynamic.When I execute the map reduce script, all transactions record of netsuite will be deleted.
    -1
    votes
    1 answer

    How to remove duplicates results from Custom Record Saved Search in NetSuite

    I am creating a saved search on a custom record to show all the records, but when I preview the saved search many duplicate records are being displayed on the screen. How can I eliminate the duplicates? And I don't want to remove all my Saved Search…
    Mr. Kamran
    • 13
    • 1
    • 8
    -1
    votes
    1 answer

    How to bill multiple Sale Orders into single Invoice in NetSuite SuiteScript

    I am trying to create a invoice against multiple sales orders along with GL impact. When I using below api that time multiple invoices are creating but i want only single invoice and with GL/accounting impact- var invoiceRecord =…
    Mr. Kamran
    • 13
    • 1
    • 8
    -1
    votes
    2 answers

    How to send email in suite script 2.0?

    i wrote this simple code to send email in suite script 2.0 and i got error " email.send is not a function" /** * @NApiVersion 2.x * @NScriptType ClientScript */ define(['N/runtime', 'N/search', 'N/email'], function(runtime, email) { function…
    -1
    votes
    1 answer

    "Permission Access on Suite-let External Link"

    How can I get access Suite-let externally without login into NETSUITE.. I am trying to get Employee record through suitelet but internally it is showing employee records but when I get external link it send me error message "You do not have…
    humza riaz
    • 11
    • 2
    -1
    votes
    1 answer

    Permission Access to Employee Data(Record)

    How can i get permission or access? I'm trying to build search in NETSUITE SSP Application and I get the following error: ERROR TITLE: "YOU_CANNOT_PERFORM_THIS_SEARCH_BECAUSE_YOU_DO_NOT_HAVE_PERMISSION_TO_ACCESS_EMPLOYEE_DATA" I have tried:…
    humza riaz
    • 11
    • 2
    -1
    votes
    2 answers

    NetSuite MapReduce - Capture Data From a Request

    I have a script that updates the product data in NetSuite on another system. When this occurs, I get response 200 and json with the product id on the other system. I would like to know how do I get this id (97323), as I need to set a field in the…
    Adriano Reis
    • 35
    • 1
    • 9
    -1
    votes
    1 answer

    NetSuite Restlet - USER_ERROR

    I am creating this script to write the invoice in NetSuite. However, when I send the data this error appears: "The approval status field should only be used when the approval routing preference is selected." PS: in the interface the same error…
    Adriano Reis
    • 35
    • 1
    • 9
    -1
    votes
    2 answers

    NetSuite - Adding Features to Standard Transaction Form?

    Is is possible to add a script to a standard form in NetSuite? My goal is to just display an inline text of a summation of a sublist column shown on the Bill of Materials Inquiry page.
    Nick
    • 517
    • 2
    • 13
    -1
    votes
    2 answers

    SuiteScript2.0: UE Script must be on Sales Order, when SO is submitted, script must add a discount line for each inventory Item on the SO

    This is what I can provide in the coding part from my end: function beforeSubmit(scriptContext) { var salesorder = scriptContext.newRecord; var discount = salesorder.getValue('discountitem'); if(discount == ''){ …
    -1
    votes
    1 answer

    Difference between client script and user event script

    We use client script for client side validations purpose,what are the scenarios we use user event script for server side validations and what is the main purpose of user event script.