Any idea how to know when 'Make Copy' is trigged ?...
# suitescript
d
Any idea how to know when 'Make Copy' is trigged ? (on afterSubmit) the context type is edit for some reason, and the rec.id is the id of the record I coming from. Any idea?
I found a solution: when getting the record I come from I can use
Copy code
rec.getValue('entryformquerystring');
That will give me the params of the popup, then there is a parameter called: "cp=T" that means you are in copy mode.
e
In SuiteScript?
context.UserEventType.COPY
is available in beforeLoad, beforeSubmit, and afterSubmit https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_4407992596.html
💯 3