Member Junction
    Preparing search index...
    • Resolves whatever a component passed into the record's actual primary key.

      When every supplied field is already part of the primary key the input is returned as-is. When one is not — the component knew the record by an email or a code — a view runs to translate it into the primary key, because the caller's "open this record" cannot be honoured with a key that does not address it.

      Returns null rather than throwing when the request cannot be honoured: an unknown entity, an unparseable key, a field the entity does not have, or a lookup that matched nothing. Opening a record is a navigation, and a navigation that cannot be resolved should decline, not crash the component that asked.

      Parameters

      • entityName: string

        The entity the component wants opened.

      • key: EntityRecordKeyInput

        The key it supplied, in any accepted shape.

      • provider: IMetadataProvider

        The provider to read metadata and run the lookup through — the caller's, never the global default, so a host on a non-default provider resolves against its own server.

      • OptionalcontextUser: UserInfo

        The acting user, for server-side callers.

      Returns Promise<CompositeKey | null>