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

    Is there any way to implement a NetSuite GL Lines Plugin using SuiteScript 2.0?

    Is there any way to implement a NetSuite GL Lines Plugin using SuiteScript 2.0? This code doesn't work. When I try to create a plugin implementation in NetSuite, I select the script file but then it can't find any plugin types for me to…
    Gordon Truslove
    • 109
    • 1
    • 1
    • 10
    0
    votes
    3 answers

    Finding missing Invoice in Netsuite

    I will first explain the current procedure : My Client sends Invoices to the Customers every month. There are around 5000+ customers to whom the invoices are sent. Now My client wants me to find out the customers for which he did not send the…
    Galdiator
    • 117
    • 4
    • 14
    0
    votes
    3 answers

    NetSuite - CSV Importing Sales Order Issue

    When I try to do a CSV import of sales order data I get - Please specify a discount item for this customer error. On the sales order there is a discount item field which we don't use. I've tried setting it to null when doing the import field…
    MG2016
    • 289
    • 6
    • 32
    0
    votes
    1 answer

    NetSuite - how to create reference link

    When the billing schedule runs it auto generates invoices from sales order. When this happens - how can I create a link on the sales order that will allow me to load the corresponding invoice in code? I need this so I can grab couple of field…
    MG2016
    • 289
    • 6
    • 32
    0
    votes
    2 answers

    Workflow to change order status if a custom field is populated for Sales Orders in NetSuite

    Basically I want the orders to import under Pending Fulfillment only when the selected triggering client field has a value in it (any value). If it is blank I don't want this workflow to run on that SO. I have another workflow in place that affects…
    0
    votes
    1 answer

    Create .ABA file inside Netsuite

    I was just looking for the possibility to generate a .aba file inside file cabinet using suitescript. I've searched through the documents but it seems like .aba is not a supported file type in Netsuite. Is there any other way can we achieve this…
    Rockstar
    • 2,228
    • 3
    • 20
    • 39
    0
    votes
    3 answers

    NetSuite - using "anyof" with multiple parameters

    I am trying to have a searchFilter in a script that would put in many parameters for internalid. For example, my code for the filter is below. An example for the values of listIds is "11276, 1234, 7895". What I am trying to figure out is what…
    TMann
    • 751
    • 2
    • 11
    • 33
    0
    votes
    0 answers

    NetSuite - BeforeSubmit not triggering on record creation

    I created couple of date fields on an invoice line item as well as the Revenue Element entity. Next, I mapped these fields (Start and End dates) Setup > Accounting > Revenue Field Mapping. The fields correctly pickup the invoice line item start and…
    MG2016
    • 289
    • 6
    • 32
    0
    votes
    2 answers

    SCA SuiteScript query item to code

    I need to add an non-inventory item by internal id to the cart in SCA, how would I go about pulling that item and then adding it? The code samples I find are for pulling data always refer to views, I am thinking I need to pull it as an item, as I…
    jk121960
    • 843
    • 14
    • 45
    0
    votes
    1 answer

    Script access to custom address field through addressbook

    I am having trouble setting a text value in a custom field I added to the address form. function fieldChanged_form(type, name) { if (name == 'custentity_bsi_agycampus') { var lnSeq = nlapiFindLineItemValue('addressbook',…
    Gus
    • 33
    • 4
    0
    votes
    3 answers

    NetSuite: Show alert on Item Receipt on Record Save not working

    The purpose of my script is to display a message to the user when they save an item receipt after comparing two line items. If the item and location match, the alert pops up. I've never built a successful script and this is my first time using line…
    Jordan
    • 1
    • 1
    0
    votes
    1 answer

    NetSuite: Scripting assembly builds to only withdraw inventory when approved

    I'm trying to write a script that will prevent finished goods from being withdrawn from inventory if the assembly build is awaiting approval. This is the first script I've ever done and first time ever using Javascript so I apologize if what I have…
    Jordan
    • 1
    • 1
    0
    votes
    2 answers

    recalc function not firing as described

    I have a recalc function on one of my client scripts that's deployed on Sales Orders. By definition, the recalc client event should only fire "after a sublist change, but only if the sublist change causes the total to change"; however, I've found…
    John
    • 302
    • 2
    • 23
    0
    votes
    1 answer

    how do I show up a SSP page in Suitecommerce Denali?

    I follow the training step, new a SSP application set application folder (include setting applications publisher) check the folder in /SSP applications build a XXX.ssp in there. (used eclipse IDE, and upload it) show up the XXX.ssp file --> …
    Fiona Xie
    • 1
    • 1
    0
    votes
    1 answer

    Add field Netsuite amortization schedule

    I would like to add a few fields to the amortization schedule record in Netsuite. However my user event script does not run. I used netsuite's debugger and when I view the record it doesn't even seem to recognize that there is a user event script.…
    kdub
    • 205
    • 1
    • 6
    • 14