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

    Trigger event for new file in Netsuite File Cabinet

    I'm new to SuiteScript. Is it possible for SuiteScript 2.0 to create a trigger to start some funcionality as soon as a new file is uploaded to a particular folder in Netsuite's File Cabinet (by web services or manually by drag and drop zone)? Thanks…
    R.W. Blok
    • 21
    • 2
    2
    votes
    1 answer

    How to install and push Netsuite bundle from eclipse , instead of creating a suitebundler

    We have access to Netsuite production account but not to Sandbox account. I am creating roles,center tabs,workflows directly in Netsuite And for Scripts using the suitecloud plugin in eclipse to push the code into filecabinet. I am aware that we…
    hem
    • 195
    • 1
    • 15
    2
    votes
    0 answers

    How to create invoice in netsuite using suitetalk?

    Thanks for reading this topic, i would appreciate if someone from netsuite can share with me solution of below issue. I am creating invoice in netsuite web portal with the customer that doesn't have credit limit, i have added inventory item and then…
    2
    votes
    4 answers

    Can't upload file to SuiteScript

    I am trying to upload a Map/reduce type script to netsuite following a suitescript 2.0 training guide. I am receiving the following error: "SuiteScript 2.0 entry point scripts must implement one script type function." I'm using the getInputData()…
    Sarah Lindmar
    • 99
    • 1
    • 10
    2
    votes
    3 answers

    Using SuiteScript to extract metadata from Images in the file cabinet

    I'm looking to build a particular solution for a client which needs to dynamically resize images stored in the Netsuite file cabinet. Is there any way within suitescript/netsuite to grab the width and height of an image in the file cabinet? Cheers!
    Steve Reeder
    • 980
    • 16
    • 42
    2
    votes
    1 answer

    NetSuite SuiteScript How to bridge the 10MG limit?

    HI and thanks for any help. Is there a way to work with files larger than 10mg? I have to check for updates on items in a file that would be uploaded, but the file contains all items in the system and is approximately 20MG. This 10MG limit is…
    jk121960
    • 843
    • 14
    • 45
    2
    votes
    2 answers

    Netsuite SuiteScript 2.0 getSublistFields method not working

    I have a User Event Script for an Invoice record (newRecord), stored as var record. In sandbox and in the browser console I use record.getSublistFields('sublist_name') which has always worked. We just ported the User Event Script from sandbox to…
    Max
    • 119
    • 1
    • 8
    2
    votes
    1 answer

    SuiteScript hmac sha256

    I'm actually working on a new project based on netsuite product. I'm trying to encrypt a message using hmac sha256. What's is the simple way to do it considering that I have the stringToEncrypt and a key. I've read the documentation in Netsuite but…
    Arigui Ahmed
    • 393
    • 6
    • 14
    2
    votes
    2 answers

    Netsuite Scheduled script can it be run every 3 minutes?

    I see on the scheduled script deployment screen on Netsuite, the Repeat dropdown starts with a minimum of every 15 minutes. Can the interval be shortened somehow?
    Amit
    • 2,495
    • 14
    • 22
    2
    votes
    2 answers

    Record Id and Type coming as null when I get the result from a saved search in a suitscript

    I have a saved search already in my sandbox account.I am not sure on what record the saved search is created. I tried loading the saved search as : var savedSearch = nlapiLoadSearch("item", searchId); var resultset =…
    Amit
    • 2,495
    • 14
    • 22
    2
    votes
    1 answer

    Is there a simple way to identify all dependent records of a record using SuiteScript in NetSuite?

    In deleting existing records during automated tests, I often encounter the "This record cannot be deleted because it has dependent records" error. Right now I scrape the dependent records page for the record types and ID's of each dependent record…
    jrbeagle
    • 21
    • 3
    2
    votes
    2 answers

    How to get a list of internal id in netsuite

    Is there a proper way to get a list of all internal id in a Netsuite Record? var record = nlapiLoadRecord('customer', 1249); var string = JSON.stringify(record); nlapiLogExecution('DEBUG', 'string ', string ); I can get most of the id using json…
    Anurag Kumar
    • 165
    • 1
    • 6
    • 17
    2
    votes
    1 answer

    Suitescript transform from Invoice to Customer Payment

    I've been trying to transform an "Invoice" to "Customer Payment" without any luck. Here's the error I got when I test my script. Account: 36714674 Environment: SandBox Date & Time: 7/23/2017 8:37 am Record Type: Sales Order Internal ID:…
    mana
    • 1,075
    • 1
    • 24
    • 43
    2
    votes
    2 answers

    How to access to Netsuite error log

    I received automated email error from Netsuite. Account: 45447 Environment: SandBox Date & Time: 7/20/2017 3:55 pm Record Type: Invoice Internal ID: 6974547 Execution Time: 0.00s Script Usage: 0 Script: Invoice Pingback Type: User Event Function:…
    mana
    • 1,075
    • 1
    • 24
    • 43
    2
    votes
    2 answers

    Send an email in SuiteScript 1.0 using email template?

    When sending an email using nlapiSendEmail() can I specify a email template to use? I have created an email template in the NetSuite backend. Is there a function I can use to send an email and use that email template?
    sazr
    • 24,984
    • 66
    • 194
    • 362