Member Junction
    Preparing search index...

    Provides recovery operations for archived records, including listing archived versions and restoring specific versions.

    Index

    Constructors

    Accessors

    Methods

    • Retrieves all archived versions for a specific entity record. Queries the ArchiveRunDetail table for matching records.

      Parameters

      • entityName: string

        The name of the entity

      • recordId: string

        The primary key value of the record

      • contextUser: UserInfo

        User context for database access

      Returns Promise<BaseEntity<unknown>[]>

      Array of ArchiveRunDetail records, ordered by most recent first

    • Restores a specific archived version of a record. Loads the ArchiveRunDetail, initializes the storage driver, reads the archive document, and applies the values back to the record.

      Parameters

      • archiveRunDetailId: string

        ID of the ArchiveRunDetail record to restore

      • contextUser: UserInfo

        User context for database and storage access

      Returns Promise<RestoreRecordResult>

      Result indicating success/failure and which fields were restored