Member Junction
    Preparing search index...

    Interface CloneContext

    Context describing an in-progress clone operation on a BaseEntity.

    When set on an entity instance via BaseEntity.SetCloneContext prior to calling Save(), the data provider will write the resulting RecordChange row with Source='Clone' and the structured JSON ChangeContext column populated.

    plans/record-cloning/README.md §10.3

    interface CloneContext {
        CloneLogID: string;
        Depth: number;
        FieldChangeSummary: { Fields: string[]; Kind: string }[];
        Reason?: string;
        RootEntityName: string;
        RootSourceRecordID: string;
        RootTargetRecordID: string;
        Route: "RootSave" | "Collection" | "Embedded" | "IsAChain" | "Sidecar";
        SourceEntityName: string;
        SourceRecordID: string;
    }
    Index

    Properties

    CloneLogID: string

    ID of the RecordCloneLog row coordinating this clone operation.

    Depth: number

    Depth within the record graph (0 for root).

    FieldChangeSummary: { Fields: string[]; Kind: string }[]

    Kinds and field names only. Values are already in FullRecordJSON.

    Reason?: string

    Optional explanation entered at clone time.

    RootEntityName: string

    Entity name of the root record of the clone graph.

    RootSourceRecordID: string

    Source key of the root record.

    RootTargetRecordID: string

    Target key of the root record after insertion.

    Route: "RootSave" | "Collection" | "Embedded" | "IsAChain" | "Sidecar"

    Relationship route traversed to reach this record.

    SourceEntityName: string

    Entity name of the record being cloned.

    SourceRecordID: string

    Compact URL segment of the source key (bare value for single-column keys).