https://netsuiteprofessionals.com logo
Join Slack
Powered by
# suitescript
  • 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?
    ✅ 1
  • 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?
    s
    • 2
    • 10
  • 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
  • t

    tuli

    11/20/2025, 10:38 PM
    I am trying to create deposit records, applying payments to it, with setting disabledpaymentfilters to true. but it is not finding the lines with the payments. I am also using dynamic mode, could size of data impact this, it just showing 10000 in that list and not more than that, but there are more open payments and deposits and refunds. I have tried giving payments array as default filter as well, doesn’t work. It’s a map reduce script, so user filters shouldn’t work on it. However, everything works well in SBX, it’s the Production environment that is creating issue. There are around 5000 lines only in SBX on a deposit to select from. Here is the code snippet that does it, Dynamic mode, I cannot think of anything.
    Copy code
    if (settlement.paymentTransaction) {
              // Handle payment transactions
              const lineIndex = bankDepositRecord.findSublistLineWithValue({
                sublistId: 'payment',
                fieldId: 'id',
                value: settlement.paymentTransaction,
              });
    
              if (lineIndex != -1) {
                bankDepositRecord.selectLine({
                  sublistId: 'payment',
                  line: lineIndex,
                });
                bankDepositRecord.setCurrentSublistValue({
                  sublistId: 'payment',
                  fieldId: 'deposit',
                  value: true,
                });
                bankDepositRecord.commitLine({ sublistId: 'payment' });
                log.debug(
                  'Line Added to Bank Deposit',
                  `Payment Transaction: ${settlement.paymentTransaction}, Line Index: ${lineIndex}`
                );
              } else {
                log.error(
                  'Payment Transaction Not Found in Bank Deposit',
                  `Payment Transaction ID: ${settlement.paymentTransaction}`
                );
              }
    Tried with large orders, small orders in SBX, works smooth, it’s just PROD that is giving issue
    b
    • 2
    • 4
  • i

    Itzco

    11/21/2025, 10:06 AM
    Hi, We have a script to insert Opportunities, for a few cases we get this error:
    Copy code
    MODULE_DOES_NOT_EXIST 
    error.SuiteScriptError
    Module does not exist: /NLRecordScripting.scriptInit$sys.js
    Change_form_due_to_entity_changecode: '',
    The code is pretty straightforward:
    Copy code
    var rec = record.create({
          type: context.recordtype
        });
        setFields(rec, context, ["recordtyle", "sublists", "id"]);
        setLists(rec, context);
        var recordId = rec.save();
        return String(recordId);
    All customers use the same forms for Opportunities and for customers. But this seems to be related to Customer record from subsidiaries. Has anyone experienced something similar? Any clue what this error means?
    r
    • 2
    • 1
  • v

    Vishal Chaudhari

    11/21/2025, 12:44 PM
    can we disacble api key netsuite using suitescript
  • s

    Sim Greenbaum

    11/21/2025, 4:57 PM
    As a Software engineer who has built applications inside and outside of NetSuite, i wanted to hear everyone's opinion on NetSuite exams
    c
    a
    • 3
    • 5
  • p

    Pedro Contreras Avendano

    11/24/2025, 3:15 PM
    Good morning everybody! Does anyone knows what happened to netsuite-fasttrack-toolkit-ss2? and how can we replace it or if there is a new project?
    c
    a
    • 3
    • 5
  • c

    Christopher Quackenbush

    11/24/2025, 5:16 PM
    Is it possible to do a
    OR
    filter on n/search when building the filters array through search.createFilter objects, or do I have to fallback to the old array based structure to handle this?
    a
    n
    +2
    • 5
    • 15
  • a

    Aaron McCausland

    11/24/2025, 10:03 PM
    What permissions are required for an outside process to get the contents of PDF files as strings via ReSTlet using File.GetContents(), when the files are attached to a Transaction records and are not Available Without Login? A vendor is telling us they need Core Administration Permissions to do this, because they tried everything else and nothing worked, even with a NetSuite consultant helping them figure it out. But Core Administration Permissions sounds overkill to me, since it's basically just Admin role with a few things trimmed off, isn't it? Never mind, I tried making a https.get request to the restlet internally with a signed-in user that had the same Role as the outside process, and I was able to fetch all the file PDF contents that way, without adding Core Administration Permissions to the role first. So I guess it's not needed, unless for some weird reason it acts different when an outside service hits the restlet from outside with the same role.
    ✅ 2
  • c

    Christopher Quackenbush

    11/25/2025, 6:52 PM
    Do you guys use anything besides jest/mocks for testing? Anyone in here use anything else for a testing harness that's a bit easier to work with?
    c
    s
    • 3
    • 4
  • c

    Charlie

    11/26/2025, 5:18 AM
    hello, something fun to share while digging into some scripts/functionality that is before my time
    😂 1
  • h

    harika s

    11/26/2025, 11:18 AM
    Hi All, I'm trying to add the 'Tax Reg. Number' field on external online customer forms( navigation : setup->marketing->online customer forms) , but i don't see the field the field is made as show in all the forms still I don't see the field to add in external online customer forms Is the field not available?