ftos.data.clone

(FintechOS 24.3.2 or later)

Clones an entity record.

IMPORTANT!  
The record's entity must be configured for cloning and versioning. For more details, see the Entity Cloning and Versioning documentation.

This method creates a new record with the same attributes as the original, except for the primary key and, optionally, the primary attribute (which can include custom suffixes).

This is a data service method for business service components.

Syntax

Copy
ftos.data.clone(recordId : string, versioningSettingName : string, namingConventionInputs? : { [key : string] : string }): string;
 
Parameter Type Description
recordId string The ID (primary key) of the record to be cloned (GUID).
versioningSettingName string The name of the clone and version settings to use.
NamingConventionInputs (optional) { [key: string]: string }

Dictionary of suffix key-value pair(s) to be appended to the primary key:

  • key - naming suffix key as defined in the entity's clone and version settings.
  • value - the corresponding suffix that will be appended in the naming suffix key slot.

Return Value

Returns the ID of the newly cloned record.

Examples