using Global.DeepCopy.copySingleRecord function in a scoped script include?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2025 08:46 AM
Hello SN Experts, thank you for your consideration of my question, and your answers to my previous questions.
I am constructing a scoped script include to enhance efficiency in one of my applications, which includes a function to copy an existing record in one of the scoped tables to a new record, enabling the customer to "start over" without actually having to re-enter any field values.
While scanning through the OOB script includes to learn more about best practices, imagine my surprise to find the script include labeled "DeepCopy" which contains a function "copySingleRecord" in the Global scope! No technical debt required!
Is there an easy way to use this function from within my scoped client callable script include and pass in the old record?
Thank you in advance for your guidance!
Kind Regards,
woody
/**
*
* copies the current agreement field values to a new draft agreement
* @ParamS - original agreement sys_id, field values
* @returns - new agreement
*
*/
copyToNewAgreement : function() {
//script goes here
global.deepCopy.copySingleRecord();
},
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2025 02:45 PM
Hi @woodyfairley,
is this still actual?
/* If my response wasn’t a total disaster ↙️ ⭐ drop a Kudos or Accept as Solution ✅ ↘️ Cheers! */