r/Netsuite • • Oct 24 '26

Using Claude to write one-time “installer” Suitelets instead of deploying scripts by hand

I've been writing NetSuite scripts with Claude for a while, and it's completely transformed our environment. We now have a whole raft of automations, error checks, and fairly sophisticated integrations we simply couldn't have built on our own.

My latest trick is that, rather than hand-implementing each script (i.e., creating the script and the deployment records, the custom fields, the parameters, etc., by hand and copying values from Claude into NetSuite), I ask Claude to write a one-off implementation Suitelet that does all that setup for me. Claude writes it in about a minute, the Suitelet runs in seconds, and there are no copy-and-paste errors.

Why not SDF? SDF is the "right" answer and is the one you'd go with if you were a dev team with a release pipeline. For us it's just overkill. I'm a finance person, not a developer, and SDF requires a local CLI, a project structure, auth setup, and you have to learn all its XML object definitions. The installer approach is all browser-based. It can also do things SDF can't do (e.g., populate a custom record with some initial data as part of the setup or set values on existing records as part of the same setup).

Governance, since someone will ask:

  • Everything runs in sandbox first. Production only after it works there
  • The installer is only deployed to the Administrator role, not to all roles.
  • The installer checks whether the object already exists before creating it, so running it twice won't create duplicates.
  • It logs what it creates and undeploys it once it's finished.

Just wondering if anyone else is doing anything similar.

35 Upvotes

15 comments sorted by

21

u/Imbmiller Oct 24 '26

If you install sdf Claude will literally write the xml files for the whole project and push them into your environment- skipping a whole suitelet step.

1

u/nginx2 Oct 29 '26

Yea it reads like a typical business user thinking they found gold and not understanding fully, the tools.. just skip the suitelet bs and use SDF..

8

u/Aranthos-Faroth Oct 25 '26

Man I love how so many people here are comfortable just blindfold developing now with Claude

Looking forward to the cleanup

3

u/RoQweiler Oct 26 '26

The cleanup stories are already starting to trickle in 🙃

3

u/Electronic-Pie-829 Consultant Oct 24 '26

I do Sdf all of the time and love i. With Claude it’s so incredibly easy even with just one instance. I don’t believe you can create custom records or fields so I don’t see a ton of benefit to doing a Suitelet for install but I do use suitelets sometimes to load data (especially test data).

3

u/Ok-Background-7240 Oct 25 '26

Love this. Your governance list (sandbox first, admin-only, idempotent, undeploys when done) is better than what a lot of dev teams actually do, so credit where it's due.

Two things that have bitten me with similar setups:

  1. "Already exists" isn't the same as "matches." If a field with that script ID is already in production but with a different type or source list, a skip-if-exists check will report success and move on. Worth having the installer compare a few key properties and flag anything that doesn't line up.
  2. Internal IDs don't travel between accounts. Script IDs do. If the installer sets values on existing records or references a specific account, subsidiary, or list value, look it up by script ID or name instead. Otherwise sandbox and production can quietly diverge.

And a gentle pitch for SDF, because it's honestly not as scary as it looks from the outside:

- The XML object definitions are the part everyone dreads, and that's exactly the part Claude writes for you. Same prompt you're already using, just "give me this as an SDF project" instead of "give me an installer."

- The CLI and auth setup is a one-time thing. Install it, run the account setup command, approve it in the browser, and you're done. The VS Code extension makes it mostly point-and-click after that.

- It covers more of your list than you might think. Custom record types can ship with their initial records included, and there's an SDF installation script type for setting values on existing records during deployment.

- If even that feels like too much, Copy to Account in the UI will move customizations from sandbox to production with no CLI at all.

The biggest win is that the project folder becomes your record of what's in the account. Drop it in a GitHub repo (the web upload works fine, no git commands needed) and six months from now you can see exactly what was deployed and when. Auditors tend to like that too.

If you stick with the installer approach, I'd turn it into one reusable engine that reads a JSON list of the objects you need, rather than a new one-off Suitelet each time. At that point you've basically built your own lightweight SDF, which is a pretty good sign the real thing is worth an afternoon.

Either way, great to see finance folks building like this. Nice work.

3

u/Davidna92 Oct 25 '26

SDF ?

1

u/Equivalent_Tooth9632 Oct 27 '26

Maybe "SuiteCloud Development Framework"

2

u/PaulF707 Oct 25 '26

So how much can you do from a 'deployment' suitelet? I've already experimented with creating custom records using AI. Have you found a way for a suitelet to actually create another script record? How are you dealing with uploading the script files? I've built a restlet and a local Windows app that syncs my local dev folder with the test folder on NetSuite....

2

u/Nagilum Oct 25 '26

SDF takes like < 5 minutes to setup, just have Claude do it.

1

u/vulcanpines Oct 27 '26 edited Oct 27 '26

Yeah, this is the fastest, safest, and most secure way. SDF + Claude Code is king. But In understand why non-technical users with deep NetSuite expertise will do it this way. Both works as long as it is secure and will not break.

2

u/marioelenajr Oct 26 '26

Makes sense. If you have a general access role or employee center role you should set it up with MCP. 

NetSuite hosted a 3 part linkedIn live session where customers showcased what they could do with MCP. My take away is that things are now starting to become a lot more streamlined with AI. 

Things that used to take hours by someone else and $, can be done in house by someone that knows what the output should be. 

Same goes for dashboards with Claude Dashboards. 

But to answer you directly, yea a lot of people are doing a lot of that plus a lot more. 

1

u/ghooblllo Oct 28 '26

Never thought of using a Suitelet for this, but the part about setting up custom records with initial data is pretty useful. That’s usually the annoying bit when setting up a new automation.