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

    How to implement standard functionalities using SuiteScript

    I'd like to build suitescript implementing same functionalities with standard function. For instance on item detail page (List/WebSite/Items) clicking view button of any non inventory item, you could find out Convert To Inventory button. Thanks to…
    Jin
    • 924
    • 1
    • 9
    • 34
    0
    votes
    1 answer

    Convert non inventory item to inventory item via suitescript

    I'd like to convert some non inventory items into inventory items using suitescripts. I know there is Convert to Inventory button on item detail page but I don't want to use this button. I have more than 5000+ non inventory items need to be changed…
    user6112430
    0
    votes
    2 answers

    NetSuite Restlet PDF file encoding issue

    My code correctly creates a file in document repository as well as attach it to a record in NetSuite. However, the file type is 'Other Binary File' when it should be a PDF. I read that for PDF we must encode in base 64 but even then it doesn't…
    MG2016
    • 289
    • 6
    • 32
    0
    votes
    3 answers

    Find Which script or workflow is sending mails

    I got a Netsuite CRM system from a client where already there are 100+ workflows and scripts implemented and running. One of the consumer of client is getting system generated emails from netsuite on Daily basis which they want to stop. Say the mail…
    Galdiator
    • 117
    • 4
    • 14
    0
    votes
    2 answers

    Suppress or Submit record if UI error exists Netsuite Suitescript

    Does anyone know how to handle the UI errors in Netsuite Suitescript? I have a script that runs perfectly under normal circumstances. The script loads a sales order and checks a check box then submits the order. The error I receive is if the…
    Mike A.
    • 25
    • 11
    0
    votes
    0 answers

    netsuite auto-populate a field

    Here is a code for auto populating a field in a sales order with a custom entity field. function exampleFieldChangedFunction(type, name, linenum){ if(name == 'entity'){ //this line will make sure that the field being changed is the 'customer'…
    fbarriga
    • 35
    • 9
    0
    votes
    2 answers

    Automate "Mark Shipped" functionality of purchase order using scheduled script

    I am trying to automate "Mark Shipped" functionality of purchase order using scheduled script. I have tried to set the status of purchase order using the following code nlapiSubmitField('purchaseorder',purchaseorderid,'status','F',false); I also…
    0
    votes
    1 answer

    netsuite search returns duplicate

    Alright I've noticed that occasional when I do a saved search in Netsuite, or run a search in suitescript that it returns duplicate records. The only difference that I can see is the memo field. Is it showing the 3 records because it saved the…
    ceridian
    • 51
    • 1
    • 5
    0
    votes
    1 answer

    suitescript set custom column value netsuite

    Using Pick, Pack and Ship and advanced PDF HTML templates, NetSuite cannot display the qty remaining to pick. So if we do a partial pick, we cannot show the warehouse the remaining balance. The math is simple, here is the script and function I…
    DLindy
    • 1
    • 1
    0
    votes
    2 answers

    Suite Script for User Event is not getting triggered for xedit operaration

    I have a SuiteScript which is getting triggered on AfterSubmit of any Case update. It is working fine for normal updates. But when I try to edit a Case in-line(through case search), the event is not getting triggered. Do I need to configure anything…
    0
    votes
    1 answer

    nlapiRequestURL returning http code 400 Invalid parameter combination

    I have a Netsuite scheduled script that connects to Concurs API to revoke all tokens for a user but I am getting a response code of 400 Invalid parameter combination. I have tried many different ways of setting the parameters but, I am having no…
    kdub
    • 205
    • 1
    • 6
    • 14
    0
    votes
    1 answer

    Parent accounts need to view and pay invoices of child accounts while using SuiteCommerce Premium Customer Center

    We need parent accounts to have the ability to view and pay invoices on any of their child accounts while using SuiteCommerce Premium Customer Center. It is my understanding that NetSuite doesn't support this. Is there any way that I can accomplish…
    John
    • 302
    • 2
    • 23
    0
    votes
    2 answers

    NetSuite : USER_ERROR while doing nlapisubmitrecord even if all the fields are specified

    We are facing a strange issue while submitting vendor bills and processing it through a scheduled script. Everytime the script tries to call nlapisubmitrecord(vendorbill,true, true), it throws an exception : USER_ERROR : Please enter values for…
    FreeMarker12
    • 115
    • 1
    • 10
    0
    votes
    1 answer

    Netsuite - using Suitescript attach a image from file cabinet to custom record attachments

    I currently have a custom record which have the image field where the end user can upload one image. Now my end user want to attach multiple images, so we have turned on attachments (files tab) and want to run a scheduled script to move the current…
    0
    votes
    1 answer

    Suitescript search joins with custom parent/child records

    Evening All, I'm working with my first search script with a join, and I can't for the life of me get the parent information to show anything (showing as null) in the console. I know I'm missing something very basic. Search code as below: var…
    Steve Reeder
    • 980
    • 16
    • 42