I'm not sure after initial click of make copy ther...
# suitescript
j
I'm not sure after initial click of make copy there's a way other than handling it yourself with a custom field and setting that field maybe in a user event script when you can detect a copy is in process. I actually record the transaction the user copied from in a custom field.
d
i have done it using script. any other option to identify
j
I don't think there is but maybe someone else will chime in and point to way. It sounds like you have a solution though.
b
You are asking for a non suitescript solution from the suitescript channel
👍 2
d
No i don't have a solution other than script
n
Am i correct saying you have used record.copy? If that is the case, you should be able to see the id when you save it.
var objRecord = record.copy({
type: record.Type.SALES_ORDER,
id: 157,
isDynamic: *true*,
defaultValues: {
entity: 107
}
});
var objRecordID = objRecord.save();
s
@NElliott hes trying to determine if there is a way outside of suitescript to capture when someone uses the copy button in the UI... I assume you might be able to do with a workflow and have the only entry point as copy?
n
UE when the event is "COPY" then you could update a custom field to refer to afterwards,