Polymorphic scope descriptor used to filter tag visibility.
A TagScopeContext is a list of (entityName | entityId, recordId) pairs that
resolve, conjunctively, to the set of MJ:Tag Scopes rows considered
"in-context" for the current request. A tag is visible if it is IsGlobal=1
OR has at least one MJ:Tag Scopes row matching one of the scopes here.
Most callers will pass a single scope (one tenant / customer record). The
array shape exists for cases where the request straddles multiple scope
records (for example: a multi-tenant analytics query running across two
companies a user has access to).
Either entityName (e.g., "Companies") or entityId may be supplied — the
filter builder resolves the name to an EntityID via Metadata.EntityByName.
Polymorphic scope descriptor used to filter tag visibility.
A
TagScopeContextis a list of (entityName | entityId, recordId) pairs that resolve, conjunctively, to the set ofMJ:Tag Scopesrows considered "in-context" for the current request. A tag is visible if it isIsGlobal=1OR has at least oneMJ:Tag Scopesrow matching one of the scopes here.Most callers will pass a single scope (one tenant / customer record). The array shape exists for cases where the request straddles multiple scope records (for example: a multi-tenant analytics query running across two companies a user has access to).
Either
entityName(e.g., "Companies") orentityIdmay be supplied — the filter builder resolves the name to an EntityID viaMetadata.EntityByName.