u/SeaworthinessOdd6765

How to develop record processing flow in Netsuite as a developer.

Hi everyone,

I got a requirement in NetSuite where on Credit Memo creation, I need to create a parent custom record (X) along with multiple child records (Y). The number of child records is dynamic.

Initially, I handled this using a User Event script to track Credit Memo creation and then triggered a Scheduled Script to create the records asynchronously, since the process was a bit heavy for real-time execution.

The issue is that if multiple users create Credit Memos simultaneously, some executions get skipped because only one scheduled script deployment was available. I then added multiple deployments, which improved things, but now the concern is: how many deployments should realistically be created since concurrent submissions are unpredictable?

The client wants the process to feel near real-time, so a periodic scheduled approach is not preferred.

From an architecture/scalability perspective, what would be the best approach here or I am doing it in a right way.

I am always confused on such kinds of things where the process needs to be in real time but we cannot handle the whole thing in one user event only.

reddit.com
u/SeaworthinessOdd6765 — 4 days ago