Hi, inventory number record is getting created on ...
# suitescript
r
Hi, inventory number record is getting created on inventory adjustment directly but our script is not getting triggered then? How can I get it triggered on lot number inventory record? It is working on EDIT but not on CREATE?
z
The most annoying behavior of NetSuite generally! User event scripts don't being triggered in a chain, only on the first record level. What does mean? When you save inventory adjustment and in the "background" server creates other records type instance, ONLY userevent for the invenfory adjustment will be triggered!!!
r
The user event is deployed on lot number record still it is not triggering on create, but on edit
z
edit of lot number? right?
r
Yes
Don't know why
z
and that is what I am talking about : a lot number is creared by inventory adjustment? right?
Your logic is correct : create ue for lot number record and expectations are "it. will be triggered in any case of creating record", but NetSuite does not provide that!!! The only way to do something with lot numbers created with IA transaction is making After submit userevent for INVENTORY ADJUSTMENT
r
Right. But I wanted to set created date on lot number record that is why I deployed the script on lot number record