Function createRecordProxy

  • Create a record proxy around a SF record removing any namespace prefixes it may contain and making all fields accessible with case-insensitive keys.

    Type Parameters

    • T extends object

    Parameters

    • record: T

      SF Like record object

    • writable: boolean = false

    Returns T & {
        [key: string]: any;
    }