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
    4
    votes
    0 answers

    Netsuite: Workflow action script

    The following script is executed after clicking a button on sales order. It creates work orders for items on the sales order if some conditions are fulfilled. It works fine, but sometimes it stops working and I need to undeploy and deploy the script…
    JeppePeppe
    • 51
    • 4
    4
    votes
    2 answers

    SuiteScript Error - Catch(e) - e undefined

    I have a simple try/catch block in my SuiteScript: try { var csvFile = file.create({name : outputFileName, contents : header, folder : 123, fileType :…
    Bud
    • 709
    • 2
    • 11
    • 28
    4
    votes
    1 answer

    How can I use a key.pem file in Netsuite to sign a HTTP request with Suitescript?

    I am trying to sign a https request and for that I need to encrypt a digest. From the api I generated both a certificate.pem and a privateKey.pem. I uploaded them both in Netsuite in the Certficate and Key part of the company set up. My question is…
    bluehank
    • 158
    • 7
    4
    votes
    2 answers

    How do I make a text box appear after selecting an option from a drop-down menu in SuiteScript?

    I am new to SuiteScript. Right now I am trying to make a form using a Suitelet. In this form I want to add logic to the Suitelet where if a user selects an option from a dropdown menu, then that option will make a textbox appear for the user to…
    thomas93
    • 43
    • 7
    4
    votes
    1 answer

    Problem in sending JsonString to Python endpoint using Netsuite script

    I have a simple python route as follows:- @app.route('/api/customer/', methods=['PUT']) def check(): data=request.json return data I'm trying to call this python route using suite script in Oracle Netsuite. Here is the code for Requesting part…
    durga
    • 115
    • 11
    4
    votes
    2 answers

    Trying to access a sublist in Netsuite with suitescript

    I am trying to access a sublist in NetSuite with a workflow script. I placed a button on all sales orders that once pressed will execute this script. I keep getting an error that my sublist is null. If it is null can someone explain why? …
    CC41325
    • 53
    • 1
    • 2
    • 8
    4
    votes
    2 answers

    Saved Search of Saved Searches with Email Subject and Body in results tab

    I'm trying to create saved search of saved searches in order to see which saved search is sending which e-mail. Now once i have like 100 auto e-mails from saved searches in netsuite i would like to organize them. For example i would like to have all…
    Aleksandar Đokić
    • 2,118
    • 17
    • 35
    4
    votes
    3 answers

    Converting a date to a string - SuiteScript 2.0

    Goal: Convert JS Date Object to a String representation in the format of "11/2/2017" in a NetSuite SuiteScript 2.0 scheduled script. I have a date object that I need to use for 2 purposes. In one, I am going to use it for comparisons (so I want the…
    TMann
    • 751
    • 2
    • 11
    • 33
    4
    votes
    1 answer

    SuiteScript 2.0 attach email to multiple transactions

    I'm using the N/email module to send an email that I'd like to attach to multiple transactions. With a single transaction using the following code, I have no issues: email.send({ author: -5, recipients: recipient, subject: subject, …
    Nathan
    • 390
    • 1
    • 2
    • 10
    4
    votes
    2 answers

    NetSuite restlet write performance is poor

    Edit: I've redacted actual numbers and replaced them with pseudoswears because I've been told sharing performance data is against Netsuite's TOS. I'm integrating our accounting system with NetSuite using restlets, and overall it has gone pretty well…
    Powercow
    • 61
    • 4
    4
    votes
    5 answers

    NetSuite SuiteScript 2.0 disable field based on checkbox

    I apologize if this is a dumb question, but I am new to NetSuite, and have noticed that their documentation is absolutely ridiculously horrifyingly and atrociously disgusting. All humor and bitterness aside though, I can't find the details that…
    Godrules500
    • 467
    • 6
    • 25
    4
    votes
    1 answer

    NetSuite / Suitescript - Why does this Validate Field script enter an infinite loop?

    My script is entering into an infinite loop and I have no idea why. I am running this on validate field and I am preventing a change to the field if another vendor bill exists with the same reference number, forcing the user to change the "Reference…
    bluejay92
    • 161
    • 6
    • 21
    4
    votes
    1 answer

    NetSuite - not able to reference images from folder

    My Code: function combineExpenseFiles(type){ try{ var currentRecordId = nlapiGetRecordId(); var currentRecord = nlapiLoadRecord('expensereport',currentRecordId); var expensesLineItemCount =…
    Deepak Garg
    • 142
    • 8
    4
    votes
    5 answers

    How to show the custom error message without stack trace using suitescript 2.0 in netsuite

    I want to show the custom error message with out stack trace to user using "suitescript 2.0"version. In workflow the custom error message is showing without stack trace but in Suite Script the "ERROR MESSAGE " is showing with the stack trace. ERROR…
    Deepan Murugan
    • 721
    • 2
    • 19
    • 41
    4
    votes
    1 answer

    How to show the custom PDF template while clicking the button

    I want to show the PDF Template in new window while clicking the button in Sales Order. I created the button in sales order process using user event script. after that i'm unable to proceed it. It is possible to show the custom PDF template in new…
    Deepan Murugan
    • 721
    • 2
    • 19
    • 41
    1
    2
    3
    95 96