Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
User Event Script to stop Delete action
Hi
Is it possible to stop a Delete action by using a User Event script?
E.g. Prevent a invoice record to be deleted if a certain field is set.
The reason why I want to use an User Event script rather than a Client script is because I also use web services and I want the same rules to apply regardless if someone tries to delete the record using the UI or web services.
I've tried things like creating a User Event script that triggers on BeforeSubmit and then throws an exception using nlapiCreateError but it doesn't seem to have any effect.
0