r/Netsuite • • 5d ago

SuiteScript NetSuite Solution Architecture & Planning Tools

Hey guys,
When youโ€™re developing a custom solution in NetSuite, what tools and methods do you use to plan and design the solution before starting development?
How do you analyze the current system and its existing customizations?
How do you identify dependencies between scripts, workflows, custom records, and fields?
What tools do you use to visualize the solution architecture and business processes?
Do you follow a specific customization lifecycle or documentation framework?

Thanks ๐Ÿ™๐Ÿป

9 Upvotes

23 comments sorted by

2

u/Southern-Message-882 5d ago

are you working in an older account with years of undocumented scripts, or starting relatively fresh? the discovery approach changes a lot depending on how much legacy tech debt youre trying to untangle first

2

u/Dependent_Escape_837 5d ago

Yeah old account 5 years old , and yeah I think it haves a lot of technical debt here

2

u/Commercial-Garage285 4d ago

Before writing any code, I'd start by checking Scripted Records for the main transactions you're touching. That shows you which automations are already firing and in what order. Another thing I like to do is download the entire SuiteScripts folder and have an AI tool examine the contents.

I actually built a custom tool called CSDocs (https://getcsdocs.com/) for this exact scenario if you're interested. It runs inside NetSuite every night to index your scripts, workflows, custom fields, and saved searches. It builds an interactive dependency map and record execution flow so you can see how everything connects. Most devs don't include any documentation when they write automations, so I've been trying to figure out a solution to this problem for a while.

2

u/Dependent_Escape_837 3d ago

This seems great, i will give it a try thank you

1

u/Commercial-Garage285 3d ago

Awesome. Let me know what you think!

1

u/theIntegrator- 5d ago

It really depends on the complexity and impact of the customization. A simple User Event script requires a different approach than a custom order management solution.

I think it's important to really understand the business context you're working in. Rather than jumping straight into the technical solution (which you're probably not doing, given your post), I'd start by understanding the problem and writing it down. For larger customizations, involve the right stakeholders and gather both functional and non-functional requirements.

For the analysis part, Scripted Records is a good starting point, but it's not enough on its own. You can also use SDF to pull existing scripts and supported customization objects locally and use AI to identify references and potential dependencies. Combined with NetSuite MCP, this can make analyzing an existing environment much easier. Just bear in mind that not all dependencies are explicit, particularly when external integrations are involved.

Once you understand the requirements and the existing environment, move into the design phase. For smaller changes, a user story with acceptance criteria may be sufficient. For larger customizations, I would also document the proposed solution in a design document and use something like Draw.io or Mermaid to visualize business processes and component interactions.

I'd also think about how you're going to test the solution before starting development. Regression testing is particularly important in NetSuite, as a change can unintentionally affect existing functionality.

Ultimately, the amount of preparation and documentation should be proportional to the complexity and risk of the change. The goal is to reduce uncertainty before writing code, not to introduce unnecessary overhead.

1

u/Dependent_Escape_837 5d ago

Thanks this was really helpful

Yeah of course this a must, i took the requirement and understood it very well

Now moving designing the solution and understanding the environment of already built scripts

Many thanks for your helpful advice

1

u/Expensive-Plant-69 5d ago

would you care to try something i made for this exact purpose?
it can help you design solutions, and still be groundedd in netsuite documentation. it will walk with you from the discovery, to the end- implementation...
and yes, it extracts business logic from the files you give it. it can even make flowcharts and mermaid diagrams and give it as docs, so you can share with teh client and get their approval.

you can use it for free, let me know!

1

u/Dependent_Escape_837 4d ago

Wow this seems interesting, can i send you a message in dm

1

u/Expensive-Plant-69 4d ago

i am unable to mesage, you. DM me

1

u/Dependent_Escape_837 4d ago

Same issue i faced thatโ€™s why I asked you ๐Ÿ˜‚, thought maybe you would know it

1

u/Expensive-Plant-69 4d ago

Sign up for a trial, I will approve, or give me your email here, I will send you the account details

1

u/Expensive-Plant-69 4d ago

sure! sent you a dm

1

u/Expensive-Plant-69 4d ago

not sent yet, figuring out where the button is. new to reddit, i am.

1

u/gavinjd68 4d ago

Do you know Claude?

It can analyze your current environment and with some simple instructions suggest a solution and architecture.

Few tips:

Ask it to do a mock up with live data

Give it as much information about your company, business and who the users will be

You can ask it to create a storyboard - this has become central to our documentation process

Have fun and good luck!

1

u/Dependent_Escape_837 4d ago

Do i have to connect with claude my environment through Mcp ?

1

u/gavinjd68 4d ago

Yup. Easy peasy.

Itโ€™s a game changer.

1

u/Dependent_Escape_837 3d ago

But is it safe to expose companies data to claude ?๐Ÿ˜…๐Ÿค”

3

u/kcDOIT 5d ago

In a two day span, I can help you x-ray the whole thing creating all workflow, script, custom field documentation, and even identify the tools that need to be built to improve the business.

After 13 years of NetSuite, it'd be crazy to go screen by screen, script by script.

1

u/Laurendon-Mimoune 1d ago

yeah going script by script manually is a massive time sink, especially on older accounts