https://netsuiteprofessionals.com logo
Join Slack
Powered by
# suitescript
  • i

    Isaac M

    10/28/2025, 5:49 PM
    Does anyone have a better way to unlink customer deposits from sales order? My accounting team does not want to have to go into the sales order and change the form to cash sale.
    t
    n
    • 3
    • 3
  • t

    texmc

    10/28/2025, 5:59 PM
    is it possible to generate price lists via script (like using the render module)
  • n

    Netsuite Tragic

    10/28/2025, 9:27 PM
    Is the Sales Quota record available via N/Query? My script just say it’s an invalid record type.
    n
    • 2
    • 2
  • c

    Craig

    10/29/2025, 2:44 PM
    Is there anywhere in the DB that links a transaction to an account? I looked through the transaction table but don't see anywhere an account is stored This is on netsuite2.com
    d
    g
    • 3
    • 12
  • f

    FAgudelo

    10/29/2025, 6:20 PM
    I'm trying to group items utilizing a descriptive item in Netsuite, has anyone done any work like this in Shopify ?
  • m

    Mike Robbins

    10/31/2025, 2:14 PM
    Does anyone know why this code works in
    beforeLoad
    for a user event script, but doesn't work in a Suitelet? In the Suitelet
    window
    appears to be
    undefined
    .
    Copy code
    form.addButton({
        id: 'custpage_cancel',
        label: 'Cancel',
        functionName: "window.open('" + revenueArrangementUrl + "','_self' );"
    });
    b
    • 2
    • 2
  • d

    David Na

    11/02/2025, 2:58 PM
    I’m trying to set up an approval system for purchase orders using a Suitelet. The idea is that an email is sent via a Workflow with an email template, and the template contains a link to the Suitelet that performs the “Approve” action. Example of the link sent in the email:
    Copy code
    <https://9319243-sb1.extforms.netsuite.com/app/site/hosting/scriptlet.nl?script=1372&deploy=1&custscript_approvalmail_action=approve&custscript_approvalmail_recid=43283>
    Even though the Suitelet is set as Available Without Login and the audience is Online Form User, clicking the link returns the error:
    Copy code
    Invalid page parameter. Unable to view page.
    Has anyone encountered this issue? What is the correct way to send parameters to a Suitelet via email so that non-logged-in users can perform actions?
    b
    • 2
    • 7
  • c

    cweier

    11/03/2025, 5:21 AM
    Hi team, building a (hopefully) straightfoward Suitelet to allow us to accurately reconcile landed cost estimates vs actuals (FX involved and the bosses want a good indication of how close we are). Basic plan is to have a few header fields then a sublist populated from a saved search, and checkbox to select each transaction to be dealt with. Pretty confident with most of that, but I am hoping to have a header field that shows the 'balance' of the selected transactions (ie the variance). Is this best achieved via a fieldUpdated script for the sublist to add/subtract the value of the relevant line when the checkbox is ticked/unticked, or is there a better way to handle this?
    n
    • 2
    • 1
  • s

    Slackbot

    11/05/2025, 4:57 PM
    This message was deleted.
    👀 1
    j
    p
    +2
    • 5
    • 13
  • s

    Sim Greenbaum

    11/05/2025, 9:14 PM
    using the https module and ping external service, how can i know if the other service redirected to a different page
    Copy code
    let raw = https.get({
          url: url,
          headers: {
            "Content-Type": "application/json",
            Authorization: `Bearer ${response_token.access_token}`,
          },
        });
        log.debug("res", { raw, url });
    r
    • 2
    • 2
  • c

    Chris

    11/05/2025, 10:18 PM
    Server logs used to be around for 30 days, did that change in the last year? Do they get truncated early if there's excessive logging going on?
    b
    d
    • 3
    • 2
  • s

    Stephen Gosner

    11/06/2025, 10:24 PM
    Hello - have a SS 2.x map/reduce script that I've written. We have a custom transaction type in our instance for consolidated invoices, and each line is made up of underlying invoices. We have custom currency fields that we are leveraging, and so the goal is to keep the native total (header level) and native amount (line level) at $0, since this is a consolidated invoice, is non-posting, and want to avoid GL impact. When I attempt to set the value to $0 as shown below
    Copy code
    ciRecord.setCurrentSublistValue({sublistId : 'line', fieldId : 'amount', value : 0.0});
    I receive the following error message... Value 0.0 outside of valid min/max range for field amount For additional context, this is a rewrite of the original process and SS 1.0 that created these consolidated invoices via scheduled script, and was able to set the amount line item field to $0. Anyone have an idea of how I can get around this and set the value to $0. I'm able to edit the transaction after it has been created, through the UI and set the value to $0
    c
    • 2
    • 3
  • l

    Luke Collins

    11/11/2025, 3:15 AM
    Does anyone know if there's a way to access the intelligent recommendations via suitescript?
  • j

    Jonathan Allen

    11/11/2025, 2:15 PM
    Hey y'all, we're trying to programmatically access attached files for a list of expenses; this expense list is generated by querying a saved search via suitescript. Is there any identifier we can return from a saved search to look up in the N/file Module if it has any file attachments? Also open to alternative ideas about how we can find attached files for an expense.
    a
    • 2
    • 4
  • e

    Ellendhula Sreeja

    11/12/2025, 6:06 AM
    Does anyone have idea to connect NetSuite with Github for Code deployment by using Jenkins?
  • m

    Marawan مَرَوَان

    11/12/2025, 12:33 PM
    Just to be sure... the timeout of the http requests initiated from NetSuite using SuiteScript to other systems, is something that we can't control, right?
    s
    • 2
    • 6
  • s

    Sim Greenbaum

    11/12/2025, 5:53 PM
    We have added a button on a sutelet which we want to trigger a post request to an external server with a payload
    a
    b
    • 3
    • 28
  • l

    Lincecum

    11/12/2025, 8:47 PM
    Does anyone know how to kill a schedule script ;( My schedule script is falls into an infinity loop, the loop is trying to print logs, so no governance will be consumption.... it's been 4 hours now ;( I've tried: 1. Inactive the schedule script 2. unchecked deployed checkbox 3. set Priority to Low 4. Try to delete the deployment but popup an error message:
    An instance of this scheduled script deployment already exists in the work queue.
    None of these works ;(
    s
    e
    b
    • 4
    • 5
  • a

    Armanda

    11/13/2025, 1:31 AM
    Hi everyone, I have a question: I'm currently trying to create a report with HTML rendering in Suitelet. The report is a budget report using a standard budget. I'm currently using SuiteQL to retrieve data from the "Budgetimport" table. However, there's a problem: the data in that table isn't grouped according to the custom segments applied to the Budget Import records. It only groups by default segments like Department and Location. How can I save and group the data according to the custom segments as well? Thank you.
  • w

    Webberly

    11/13/2025, 2:11 PM
    I want my client script to automate the setting of inventory detail quantity on an item receipt. Thankfully all my items have a default bin and the global setting to use the default bins is on. However when changing the quantity I get a "Not supported on current subrecord: CurrentSubrecord.setCurrentSublistValue.". This happens in both create and edit client contexts Here is a sample code
    require(['N/currentRecord'], function(currentRecord) {
    const record = currentRecord.get();
    record.selectLine({
    sublistId: 'item',
    line: 0
    });
    const quantityToSet = record.getCurrentSublistValue({
    sublistId: 'item',
    fieldId: 'quantity'
    })
    const inventoryDetailSubrecord = record.getCurrentSublistSubrecord({
    sublistId: 'item',
    fieldId: 'inventorydetail'
    });
    inventoryDetailSubrecord.selectLine({
    sublistId: 'inventoryassignment',
    line: 0
    });
    // this line throws the error "Not supported on current subrecord: CurrentSubrecord.setCurrentSublistValue."
    inventoryDetailSubrecord.setCurrentSublistValue({
    sublistId: 'inventoryassignment',
    fieldId: 'quantity',
    value: quantityToSet
    });
    // Commit the line
    inventoryDetailSubrecord.commitLine({
    sublistId: 'inventoryassignment'
    });
    });
    b
    • 2
    • 1
  • p

    PF

    11/13/2025, 3:34 PM
    I have a question. would you recommend validateline or saverecord for a client based script validation?
    n
    m
    b
    • 4
    • 7
  • r

    Rick Goodrow

    11/13/2025, 6:20 PM
    trying to use hte following.
    Copy code
    search.lookupFields({
        type: record.Type.SALES_ORDER,
        id: createdFrom,
        columns: [ 'subtotal' ],
    });
    but getting an error
    {"type":"error.SuiteScriptError","name":"SSS_INVALID_SRCH_COL","message":"An nlobjSearchColumn contains an invalid column, or is not in proper syntax: subtotal."}
    Record Browser shows Sales Order having
    subtotal
    as a valid field, and loading the record via
    record.load()
    and then using
    .getValue({fieldId: 'subtotal'})
    does actually return the value. So what am I missing?
    b
    n
    • 3
    • 4
  • c

    Craig

    11/14/2025, 12:19 AM
    "message": "You have entered an Invalid Field Value false for the following field: isperson",
    Copy code
    customerRecord.setValue({fieldId: 'isperson', value: false});
    Should I be setting something other than a boolean?
    • 1
    • 1
  • e

    eminero

    11/14/2025, 9:43 PM
    Do you know if it is possible to create a suitelet to handle multiple invoice payments? The idea is to have a payment link on customer statements (open invoices) to allow customers to select which invoices they want to pay and then somehow leverage the payment processing profile (Cybersource) to handle the credit cards and get back a response to finally create the customer payments or display any error message. I know there are a lot more involved here, so I would like to know your experience on similar scenarios.
    b
    b
    • 3
    • 7
  • s

    Sim Greenbaum

    11/17/2025, 7:48 PM
    Our map reduce script fulfills our orders every day. Recently, we have had a strange bug, even though the order fulfills, we get an error message even though we have the available qty
    Copy code
    error that we received:   message: "You can not over-fulfill an item unless you have selected the 'Allow Overage on Item Fulfillments' preference.",
    let salerodernumber = data.id;
          try {
            fulfillmentRecord.save();
          } catch (error) {
            let message = error.message;
    
            let errodata = {
              message: error.message,
              info: shipid,
              address: address.shipaddress1,
              phone: address.phone,
            };
            log.debug({
              title: "create error",
              details: { salerodernumber, message, errodata },
            });
    b
    • 2
    • 3
  • f

    Felix Divall

    11/18/2025, 2:29 PM
    How do I make a bundle so that its script files are not editable, nor downloadable by any?
    w
    b
    • 3
    • 4
  • m

    Michael Pope

    11/19/2025, 12:00 AM
    Heya folks, I know there are several buttons in Netsuite that can enter in multiple line items at a time into a transaction, client side. Is there any way to do this with client side Suitescript? Trying to avoid having to add lines individually since it either breaks sourcing if you do it really quickly, or it is really slow as you wait for sourcing to finish.
    c
    • 2
    • 5
  • s

    Sarim Khan

    11/19/2025, 6:54 AM
    Hi Help required. I tried applying a User Event script on Request for Quote record but the option wasn't available on script deployment (Let like to know if I am doing anything wrong here). Would like to know what is the extent of customization options we can apply to NetSuite's standard "Request for Quote" record type. Thanks
    n
    b
    • 3
    • 4
  • c

    Christopher Quackenbush

    11/19/2025, 5:06 PM
    Good morning. Anyone in here using Netsuite Fast track Tookit SS2 in their suite scripts? Looks like the github repository that was hosting it has been moved under gitter-badger and the npm repository package has been removed. Does anyone have a recommendation on another Netsuite ORM?
  • a

    Aaron McCausland

    11/19/2025, 11:21 PM
    It's been too long since I worked with Restlets, and the documentation is not clear on a few things: • How external systems should get the domains of restlets on your NS account. The docs mention using the roles service, but the URLs provided in the documentation either go to a Page Not Found page, or an 400 error message {"error" : {"code" : "USER_ERROR", "message" : "You provided an invalid Authorization header."}} . Because of this, I'm thinking of just giving them the hardcoded restlet URL. • What permissions are required on Role and User of the Access Token being used by the external system in order to make the requests to the Restlet. They think we need Rest Web Services enabled, but I was making external requests to Netsuite Restlets a few years before Rest Web Services even existed, so that doesn't sound correct.
    r
    b
    • 3
    • 5