Skip to main content

ICADataverseLookupSource

@spartanfx/react v1.2.2


@spartanfx/react / codeapps / ICADataverseLookupSource

Interface: ICADataverseLookupSource

How to search the referenced table behind a Dataverse lookup column, so the form can populate the lookup's option list. Because Power Apps Code Apps generates one service per table, the owning form's service cannot query the referenced table — its generated service must be supplied here.

Properties

Required

PropertyTypeDescription
serviceICATabularService<Record<string, unknown>>Generated service for the referenced table (e.g. SystemUsersService), queried via getAll to list/search options.

Options

PropertyTypeDescription
idColumn?stringReferenced-table primary key column used as the option id. Defaults to <targetEntity>id (e.g. systemuserid), then falls back to the first GUID-valued column on the row.
labelColumn?stringReferenced-table display column used as the option label and as the server-side $filter search target. When omitted, the label falls back to common name columns (name, fullname, title, …) and search is applied client-side.
searchColumns?string[]Columns to search with contains(). Defaults to [labelColumn] when a labelColumn is set; otherwise search is performed client-side.
top?numberMax rows fetched per search (default 50).