Hi guys,
First of all thanks for your help and this forum. It is an invaluable help.
I am a bit confused with how Before Submit Function for User Event Script and Saved Record for Client scripts works.
All that I need to do is to execute a piece of code that loads a parent record, do something and submit such record. However I just want to do this for new records. Those existing records that are edited are excluded of this behaviour.
I have a problem here. If I place this code in a Client Script everything works fine but I can't predict whether the record being created is new or not. Or at least I have no idea how to do it.
If I put the code in a BEfore Submit function User Event Script it does not trigger. Why do I meant by it does not trigger? Well before submitting the record I check whether a field in that parent record has a certain value. If it doesn't I show an alert saying ("Parent record's field name has the wrong value").
In a nutshell I must be able to do some tasks before the record is sent to Netsuite, show an alert if something went wrong and do it only for new records - type = event.
What Am I missing here guys?
Best,
Dan.