ftos.data.version

(FintechOS 24.3.2 or later)

Versions an entity record.

IMPORTANT!  
The record's entity must be configured for cloning and versioning. The new version is based on the entity record that is currently in the Approved state. For more details, see the Entity Cloning and Versioning documentation.

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

The new version is created in the Version Draft state. To be activated, it has to be approved separately.

This is a data service method for business service components.

Syntax

Copy
ftos.data.version(recordId : string, versioningSettingName : string, namingConventionInputs? : { [key : string] : string }): string;
 
Parameter Type Description
recordId string The ID (primary key) of the record to be versioned (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 new record version.

Examples