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

    Submitted sublist lines on custom record/custom subrecord not linking to main record

    Continuation of my previous question: Suitescript Code stops for no apparent Reason The child record (sublist items) are not being saved/created and linked to the parent record. The code is below. try { var vendorid = nlapiGetRecordId(); …
    Steve Reeder
    • 980
    • 16
    • 42
    0
    votes
    1 answer

    Suitescript Code stops for no apparent Reason

    I have the following code which executes a search, then just stops. for (var i=1; i<=numberItems; i++ ) { nlapiInsertLineItem(SUBLIST_Items,1); var itemID = vendorItems[i].getId(); …
    Steve Reeder
    • 980
    • 16
    • 42
    0
    votes
    3 answers

    Suitescript to return all items supplied by a vendor as a search object

    Re-entering the code as follows, with combined suggestions from @bknights & @prasun function main_GetVendorItems(request, response) { response.write(JSON.stringify(getVendorItems(request))); } function getVendorItems(request) { var…
    Steve Reeder
    • 980
    • 16
    • 42
    0
    votes
    1 answer

    netsuite suitescript filter expression not producing the search results needed

    var filterExp = [ [ ['custrecord_rebate_customer.isinactive', 'is', 'F'], 'and', ['custrecord_rebate_customer.custrecord_start_date', 'before', date], 'and', …
    Mike A.
    • 25
    • 11
    0
    votes
    2 answers

    NetSuite: Custom Address Fields when Line Item Shipping (MSR) is Enabled

    I have a quirky issue with NetSuite. On a Sales Order which has 'Enable Line Item Shipping' checked, meaning Multiple Shipping Routes are Enabled, the shipping address goes on the item line level. via SuiteScript, I can access the address on the…
    dah97765
    • 679
    • 1
    • 13
    • 29
    0
    votes
    4 answers

    Learning Netsuite

    I am starting to learn Netsuite, since that is required for our New project. I am completely new to it. Currently I am working on PHP. As suggested by my manager I created the developer account on it. But I have no Idea about It. So if someone can…
    Galdiator
    • 117
    • 4
    • 14
    0
    votes
    1 answer

    Set focus on a particular sublist field on a custom form

    Evening All. I have a scenario with a custom form with a main record, and a sublist of items. I have various criteria etc... which disable or enable some of the fields in the sublist on the fly. One problem I have is when field #4 for example is…
    Steve Reeder
    • 980
    • 16
    • 42
    0
    votes
    2 answers

    Remove a button in SuiteScript

    I need to be able to remove the delete button when today is greater than a particular calculated date. There are 2 ideas I had and issues with each: 1 - Set a custom field on the record for the particular calculated date. Then use a workflow action…
    TMann
    • 751
    • 2
    • 11
    • 33
    0
    votes
    1 answer

    Get child records in suitescript

    I have a customer which is parents and there might be several subcustomers for this customer . This Subcustomer is a child subtab under a parent subtab(Relationships). How do i fetch or get all the subcustomers for a parent customer. I need to…
    Winona
    • 115
    • 1
    • 17
    0
    votes
    1 answer

    How can I update fields on unsupported transaction types such as Bill with user event suitescript on netsuite

    I want to update a field on Bill record type with user event script but i can not find it on Applies to section on Script Deployment. Can you please help me about that?
    Arif Karadag
    • 129
    • 1
    • 2
    • 8
    0
    votes
    1 answer

    How to search for transaction where posting is yes in suitescript

    I have written a user event script to update posted transactions so I have to understand that the transaction (e.g. invoice) is posted. How can I search this on suitescript.
    Arif Karadag
    • 129
    • 1
    • 2
    • 8
    0
    votes
    1 answer

    How to Integrate the UPS Ratings API in NetSuite

    How do I integrate the UPS Ratings API in NetSuite? I know this is a broad question, but I need some guidance. I'm just looking for a general overview of what I need to do to integrate the UPS Ratings API in NetSuite. More specifically, I need my…
    John
    • 302
    • 2
    • 23
    0
    votes
    2 answers

    netsuite saved search multi-select dropdown filter

    Does anyone know if there is a way to add a multi-select drop down filter in a suitelet that is displaying a sublist from an already existing saved search. One of the columns is "customer" and I would like to add a drop-down that filters by the…
    L.B.
    • 35
    • 3
    • 9
    0
    votes
    1 answer

    Netsuite Suitelet addButton call function

    I am struggling to find a way to add a button to a Suitelet that calls another function in the same suitelet. I have tried many things but I can not get anything to work. I also tried to create a client script and call the client script but the…
    kdub
    • 205
    • 1
    • 6
    • 14
    0
    votes
    1 answer

    How to create Single Access Only records in NetSuite

    I am having a problem with multiple users editing a single record at the same time and losing work when the other person saves the record with their own work. I would like to lock editing when a user is editing a record, and for some reason, records…
    John
    • 302
    • 2
    • 23