does anyone know if there is a good way to determi...
# suitescript
a
does anyone know if there is a good way to determine which userscript events get executed during a given action in the UI? for context, i am trying to call an external API whenever a credit memo is applied to an invoice, adding an aftersubmit userscript to the credit memo type gets triggered if i edit a credit memo directly and apply to an invoice then save, but not if i apply a credit memo as part of the “Accept Payment” flow on a customer record which is how our finance team generally does credit applications
it looks like only the customer payment aftersubmit script gets executed, but i don’t see a good way to access the credit that was applied during the same operation from that script
b
basic answer is that the record that is actually saved is the one that triggers the user event script
dont expect creating a customer payment to trigger a credit memo user event script
a
yeah, that’s what i was afraid of, thanks! i will have to go at this a different way i think