https://netsuiteprofessionals.com logo
Join Slack
Powered by
# suitescript
  • 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
    • 3
  • 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
    • 6
  • 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
    😂 4
    🙌 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?
  • x

    Xmun

    11/29/2025, 11:54 AM
    Does anyone know how to programmatically retrieve the SuiteQL schema?
    e
    m
    • 3
    • 4
  • h

    Hunter Jacobs

    12/03/2025, 9:44 PM
    Im running into an issue with a UE 2.1 script. I am trying to have an aftersubmit on the creation of a lead that makes a task to task the relevant sales rep. However, I am running into an issue where when I change the deployment role from anything from execute as role the script no longer executes. When I go to add permissions to the identified role (id31) it does not allow me to modify it even when directly going to the url.
    b
    • 2
    • 3
  • b

    Boris

    12/05/2025, 1:01 PM
    Does anyone facing an error when run suitecloud account:setup. After click Continue
    m
    c
    • 3
    • 3
  • m

    mrrob503

    12/05/2025, 1:02 PM
    Hello folks! I have a SuiteApp deployment challenge that I'm wondering if anyone might have a solution for. I have a SuiteApp that (when the feature is enabled) looks up values from subsidiary records. We have users that both have subsidiaries enabled and some who don't. Until recently, the server-side scripts were set to run as administrator, and everything works great. Now we've introduced a custom role instead. The problem is, if I add the permission for Subsidiaries, the project fails to validate for accounts who don't have subsidiaries enabled. I'm wondering - can I use an SDF installation script or something to handle this? The easy solution would be: if subsidiaries are enabled, then edit the role and add the permission. But you can't edit roles programatically. Thoughts?
  • a

    alien4u

    12/05/2025, 4:15 PM
    Is it just me, or is this channel is unusually quiet lately? Only 2 or 3 questions per day. Are people in some kind of "vibe coding" wave? The reckoning is going to be interesting when it ends.
    👀 1
    t
    e
    +2
    • 5
    • 26
  • c

    Christopher Quackenbush

    12/05/2025, 7:04 PM
    What external libraries/dependencies do you guys use in your projects? I'm looking at creating a curated NS compatible library list, and depending on the license potentially bundling them.
    a
    r
    • 3
    • 6
  • c

    Christopher Quackenbush

    12/05/2025, 7:15 PM
    Does anyone know of a good way to get emails generated by MR scripts to actually send in sandbox? Currently our environment is set to send emails to the current logged in user, which in this case would be the system executing the script,
    a
    • 2
    • 2
  • k

    Kristopher Wood

    12/05/2025, 7:28 PM
    Hi all! I've got a suitelet that has a sublist and a list of filters. I have two buttons, submit and refresh. I want refresh to reload the sublist filtered by the user input and submit to process the filtered sublist. I've got the submit button working (it's just a submit), but how can I get the refresh button to "get" the suitelet with the field values selected?
    d
    a
    b
    • 4
    • 22
  • k

    Kristopher Wood

    12/08/2025, 12:13 AM
    using search.load is it possible to change the sort on the columns, or do you have to do a search.create?
  • k

    Kristopher Wood

    12/08/2025, 12:13 AM
    I'm setting the sort direction and it's not changing anything in the output
  • k

    Kristopher Wood

    12/08/2025, 2:05 AM
    I've confirmed the same logic works fine with search.create, it just doesn't seem to like overwriting
    search.columns
    for some reason?
    b
    a
    • 3
    • 5
  • s

    Slackbot

    12/08/2025, 9:32 AM
    This message was deleted.
    b
    • 2
    • 2
  • t

    Toni Capella

    12/09/2025, 12:17 PM
    Good morning, does anyone know if it's possible to create a password protected Excel file? I'm currently using sheetjs to create the Excel but I don't see how I could add the password protection.
    b
    c
    • 3
    • 2
  • m

    Mike S

    12/09/2025, 3:58 PM
    Hello! Is it possible to pull an item's location average cost onto a purchase order's as the item rate?
    c
    • 2
    • 1
  • c

    Christopher Quackenbush

    12/09/2025, 4:26 PM
    What features would everyone like to see in a starter template for Netsuite projects? I currently have • TS-Jest for typescript testing • BiomeJS for linting • Devcontainer for unified development environments w/ SDF installed as a module • A build/deploy script for deploying to your project. • My NFT fork / third party libraries (Ramda, Day, Immutable, Lodash (deprecated), Monday (deprecated), BigNumber, and PapaParse.
  • b

    Boris

    12/09/2025, 4:45 PM
    does expensereport table does not exist in suiteql?
  • b

    Boris

    12/09/2025, 4:45 PM
    It shows me this error.
    Copy code
    Search error occurred: Record 'expenseReport' was not found.
    when I run
    select * from expenseReport
    or
    select * from expensereport
    m
    • 2
    • 2
  • p

    Phi-My Tran

    12/10/2025, 12:41 AM
    Hi we're working a map reduce script trying to process 2000 transactions (each has 1 line) and the performance I'm getting roughly around 2 records per second. Is this the fastest. We have SC and I’m having it run around 7 concurrency which I find this performance scaling very alarming. Anyone has any thoughts? This is via map/reduce.
    a
    b
    +2
    • 5
    • 54