Clone(Int32,Int32,String,String,Int32) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The Clone() method adds a new data log group record to the Data_Log_Grp table by making a copy of an existing record.
This overload of the method identifies the data log group to be copied by its group ID.
public static void Clone(
int sessionId,
int srcGrpId,
string newGrpDesc,
out string modId,
out int newGrpId
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- srcGrpId
- Required. Holds the ID of the data log group that is being copied to create the new data log group.
- newGrpDesc
- Required. Holds the description for the new data log group.
- modId
- Output. Holds the modification ID assigned to this record when it is added. The modId parameter is used by other methods that modify or delete this type of record for optimistic concurrency control.
- newGrpId
- Output. Holds the returned unique ID of the data log group that was added.
This method clones all the data from the specified existing data log group to a new data log group, except that the new data log group uses the supplied description (newGrpDesc). Additionally, any links between the existing data log group and an entity in Data_Log_Grp_Ent_Link table are also copied to the new data log group.
If the existing data log group does not exist, then no rows will be cloned.