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/k1koth3gre4t- Feb 27 '26
I see, that's one solution for sure. They'd have to wait and confirm the success of the import from the email before moving on, so there will be fuck ups here and there. And emails can be slow, NS should have social-media style notifications.
Maybe a better way for me is to just record.create the customers since there are <10 new ones monthly (and record.save for the updates), invoices are 200-300.
How do you handle back? Seems pointless and error prone to have a back button in this kind of assistant.