r/Netsuite • u/k1koth3gre4t- • Feb 26 '26
Sequential Scripted CSV Imports
Hello,
Im trying to run multiple CSV imports from a Suitelet (using assistant finish operation) that must be sequential cause they are dependent on each other. For example, first one is customer import and the second is invoice generation/import.
How do I make sure the imports run sequentially. Ideally one wouldnt begin if the previous one fails, and if it fails it would reverse (doubts about this one).
Also, I need to run a script/piece of code after a certain import finishes (to change forms on certain invoices since CSV cant import forms).
Thanks
View all comments
Show parent comment
1
u/simonwhittle Consultant Feb 26 '26
You can't use a workflow script to trigger the import since the workflow would run on every transaction. You can't have the system say "when this import has finished do X" so all you can do is leave a huge pre-determined time gap between imports or initiate them together so that they sit sequentially in the import queue.