This topic contains 2 replies, has 0 voices, and was last updated by KCSF Bud 7 years, 1 month ago.
-
AuthorPosts
-
KCSF Bud- Contributions: 0
- Level 1
- ☆
Trying to simply set a field for the 'Copied From' record when making copies of transactions. Probably an easy solution, but has evaded me thus far. What might be an easy way to get the internal id that the copy was created from? Thought about a custom field that would copy forward but that seems like overkill.
Internal id of the old record is listed in the URL of new record before you save that new record, but not sure if that is accessible (via SuiteScript anyway). Thanks in advance.
This is a cached copy. Click here to see the original post. -
erictgrubaugh- Contributions: 0
- Level 1
- ☆
Could you just leverage the native
createdfrom
field? Or do you need that for other linkage between transactions? Either way, whether a native or custom field, seems like you could build a User EventbeforeLoad
that runs oncopy
to fill out the field appropriately. Even a workflow would work fine if you're looking to avoid writing more code.P.S. URL parameters would be accessible in SuiteScript:In a User Event
beforeLoad
, checkcontext.request.parameters
(SS2.0)
In a Client Script, checkwindow.location.search
and parse out the parameters -
KCSF Bud- Contributions: 0
- Level 1
- ☆
Thanks Eric. I've mostly been trying this with beforeLoad User Event and on Copy as you suggest, but with 1.0. Can I access the parameters in SS 1.0? (Actually I recently read your blog on why one should switch to 2.0, so I need to get on that….)
For the workflow option….am I missing something because I don't know where to get the internal Id of the originating record? I don't think Netsuite makes this connection between copied records natively.
-
AuthorPosts
You must be logged in to reply to this topic.