Is there any way to capture Quick Add events in th...
# suitescript
s
Is there any way to capture Quick Add events in the context or would it be better to make a modified quick ad portlet. I'm trying to set a field on creation of an opportunity and Quick Add seems bypass the User Event Script each time. Any help is appreciated.
a
just confirming your initial testing for this. you have an opportunity User Event script. with beforeLoad, beforeSubmit, afterSubmit entry points and you have a
log.debug('type', context.type);
in each one? and you get no logs?
I would assume it would skip before load, but I'd imagine it would hit both beforeSubmit and afterSubmit wtih a context.type of CREATE
or... wait do you mean execution context? because you want to do something conditionally if and only if its a quick add?
there's no specific quick add execution context, I'd assume its either portlet or user interface, again you should just be able to test it using the the
N/runtime
module to confirm.