Skip to main content
Version: 1.1.0

IUseCADataverseNotificationCenterConfig

@spartanfx/react v1.1.0


@spartanfx/react / codeapps / IUseCADataverseNotificationCenterConfig

Interface: IUseCADataverseNotificationCenterConfig

Configuration for useCADataverseNotificationCenter.

Extends

Properties

PropertyTypeDescriptionInherited from
autoRefresh?booleanEnable auto-refresh after mutations (default: true).Omit.autoRefresh
cacheDuration?numberCache TTL for read results in ms (default: 60_000).Omit.cacheDuration
choiceColumns?string[]SharePoint-only: column names backed by Choice / Lookup / Person columns. The hook calls service.getReferencedEntity and substitutes the matching expanded object on create/update. Defaults to [schema.level] for the SharePoint wrapper so the standard Level choice column is handled automatically. See: https://learn.microsoft.com/en-us/power-apps/developer/code-apps/how-to/sharepoint-operationsOmit.choiceColumns
debug?booleanEnable verbose console logging (default: false).Omit.debug
defaultToastDurationMs?numberDefault toast duration in ms (default: 4000).Omit.defaultToastDurationMs
maxItems?numberMaximum items to load on initial fetch (default: 100).Omit.maxItems
onError?(error) => voidError callback. Called for every operational failure.Omit.onError
onNotify?CANotifyFnNotification callback. If omitted, hook errors surface via error state only.Omit.onNotify
onToast?(item, durationMs) => voidToast handler. Called when addNotification is invoked with mode toastOnly or toastAndList. Defaults to onNotify if provided; otherwise toast emission is skipped.Omit.onToast
retryPolicy?ICARetryPolicyRetry policy for transient failures.Omit.retryPolicy
schema?Partial<INotificationCenterSchema>Schema mapping for Dataverse column logical names. The defaults assume unprefixed columns — production tables almost always use a publisher prefix (e.g. cr1a3_title), so override accordingly. The primary key column must be supplied if it differs from id (e.g. notificationid for a custom notification table).-
serviceICATabularService<CANotificationRecord, string>Generated Dataverse-table service produced by pac code add-data-source -a dataverse -t <table-logical-name>. Typically located under src/generated/services/<TableName>Service.ts.-