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

    SuiteScript: What is the purpose of governance units?

    I noticed that through my browser console I was able to view the source code for the SuiteScript API. Each API funciton had a function call within in that looked like: nsapiLogUsage( 'nlapiLoadRecord', type ). When I removed this, and inserted the…
    0
    votes
    1 answer

    Netsuite - Automating Deposit Creation

    I've just created a Suitelet to automate the application of deposit for Cash Sales where users will upload a list of Cash sales record in a CSV file and script will auto apply the deposit on cash sales and creates the deposit record, however I…
    qwertyuser
    • 115
    • 1
    • 11
    0
    votes
    1 answer

    NetSuite: Where can I find the field ID of the Subcustomers List?

    What is the internal field ID of the subcustomers list? I can't seem to locate the internal field ID of the subcustomers list on parent customer records. It's not on the customer record page on the Record Browser, and it's definitely not a custom…
    John
    • 302
    • 2
    • 23
    0
    votes
    1 answer

    Creating dynamic customer group using suite script

    I am trying to create dynamic customer group using suite script in Net suite, I am trying below code but always getting system INVALID_KEY_OR_REF Invalid savedsearch reference key 21. I have checked it is valid save search, Please help I am doing…
    Krushna
    • 5,059
    • 5
    • 32
    • 49
    0
    votes
    2 answers

    NetSuite, prevent Quote to Sales Order (via Sales Order button) if prospect assigned vs customer

    We allow sales to attach Prospects to an Opportunity and Quote, and once credit has qualified the prospect they promote the prospect to a customer. What we need to do is hide the "Sales Order" button on the quote, or disallow advancing the quote to…
    Rich Bianco
    • 4,141
    • 3
    • 29
    • 48
    0
    votes
    1 answer

    itemvendor lines and multi-currency vendors

    We have a SuiteApp which updates NetSuite inventory item records from an external feed of distributor products, prices and availability. This works perfectly until we encounter a site which has the Multi-Currency Vendors feature enabled. With this…
    lavb
    • 618
    • 7
    • 20
    0
    votes
    2 answers

    With SuiteScript, how to combine JavaScript variables in a string?

    I apologize in advance, I am very new to JavaScript and NetSuite. I'm utilizing the DocuSign for NetSuite bundle. The bundle has options to use their functions within a button. PROBLEM: I'm attempting to take a field value from NetSuite and combine…
    WTP API
    • 546
    • 3
    • 16
    0
    votes
    2 answers

    Error in scripted bin transfer

    I want to do a bin transfer. But I can't a go example that works. When I run the below code I'm receiving this error "Sublist inventory field inventorydetail is not a subrecord field" . I need to know what is the correct subrecord name to create a…
    lavb
    • 618
    • 7
    • 20
    0
    votes
    2 answers

    NetSuite, print Custom Item Field of Type:Document along with an Invoice

    In NetSuite, some of our Products have MSDS documentation (in the form of PDF files) attached to the record via a Custom Item Field whose "Type" is set to Document. When printing Invoices, we would like to automatically print out any associated MSDS…
    tedxas
    • 11
    • 4
    0
    votes
    1 answer

    Search for records that have unassigned field in SuiteScript

    What is the internal id for 'unassigned'? I've tried 0, -1, null, but have run out of ideas... var unassigned = 'WHAT IS IT?'; var filters = new Array(); filters.push(new nlobjSearchFilter(nsIds.customerAreas_relatedCustomer, null,…
    user3075978
    • 775
    • 1
    • 8
    • 30
    0
    votes
    4 answers

    Export file from NetSuite's FileCabinet to FTP

    File resides in the NetSuite file cabinet and needs to be placed on an FTP server each day. I'm not sure how to handle this via Suitelet/RESTlet, or if it's possible - but would prefer to not use an external source/application. My current and…
    MBrewer
    • 81
    • 2
    • 9
    0
    votes
    1 answer

    Netsuite - Customize Bill Sales Order form

    is there anyway to customize or add SuiteScript to the Bill Sales Order form or any other form like the Fulfill Order form where the customization option isn't available?
    dpm_eureka
    • 11
    • 1
    0
    votes
    2 answers

    Getting error "Invalid Subsidiary Combination" after submitting Timesheet record in Netsuite

    I am updating timesheet record through client script but on Submitting the record getting an error as "Invalid Subsidiary Combination". PS: I am working on 15.2 latest version of Netsuite
    Vijay Joshi
    • 90
    • 1
    • 6
    0
    votes
    1 answer

    NetSuite Historical Search Results

    I am trying to create a search that shows the number of cases that are open today (would be run on a Monday morning), the number that were open last Monday morning, and the number that were open the Monday morning before that. Problem is, I can not…
    w3bguy
    • 2,215
    • 1
    • 19
    • 34
    0
    votes
    3 answers

    How to query for credit memos in Netsuite API

    This is related to a question I asked previously: How to get customer aging fields from a Netsuite restlet The technique described in the answer to that question works great, but it doesn't handle credit memos. I'm having problems figuring out how…
    David Ranney
    • 59
    • 2
    • 11