NestedIntervalUtils - copyPartialProject(GlideRecord node, String newParentID, Boolean isSubTree, Object resetFieldsObj, Object setDefaultsObj)

Copies a complete or partial project. The given node and all of its descendants are copied and inserted under the specified parent. It can also set default field values and reset or remove specified fields.

Table 1. Parameters
Name Type Description
node GlideRecord Record of the node to be copied
newParentID String sys_id of the parent node to insert the node under
isSubTree Boolean Indicator for whether the new tree is a subtree
resetFieldsObj Object String list of field names that need to be reset or removed
setDefaultsObj Object Hash map of field names and their default values that need to be set
Table 2. Returns
Type Description
String sys_id of the inserted top node