Can UserEvent scripts trigger against records created automatically?
I created a UserEvent script for the Deposit Application record type.
When I save a deposit application in the UI, my script fires. However when NetSuite generates a deposit application as a result of a customer deposit being applied to a customer refund, the script does not fire.
The script is released for ‘All Roles’ and no event type is specified.
Do UserEvent scripts not apply under these circumstances?
These are the context.userEventTypes available to script against:
- APPROVE
- CANCEL
- CHANGEPASSWORD
- COPY
- CREATE
- DELETE
- DROPSHIP
- EDIT
- EDITFORECAST
- MARKCOMPLETE
- ORDERITEMS
- PACK
- PAYBILLS
- QUICKVIEW
- REASSIGN
- REJECT
- SHIP
- SPECIALORDER
- TRANSFORM
- VIEW
- XEDIT
Unfortunately I don’t see anything that would line up with the scenario you have. As weird as it is, I’ve run into things like this before where I just can’t get a UE to fire on certain events.
Normally, I work around this by running a scheduled script looking for them being created instead and triggering that way. Not ideal, but not much else you can do I guess.