IUseCADataverseNotificationCenterConfig
@spartanfx/react / codeapps / IUseCADataverseNotificationCenterConfig
Interface: IUseCADataverseNotificationCenterConfig
Configuration for useCADataverseNotificationCenter.
Extends
Omit<ICANotificationCenterBaseConfig,"service">
Properties
| Property | Type | Description | Inherited from |
|---|---|---|---|
autoRefresh? | boolean | Enable auto-refresh after mutations (default: true). | Omit.autoRefresh |
cacheDuration? | number | Cache 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-operations | Omit.choiceColumns |
debug? | boolean | Enable verbose console logging (default: false). | Omit.debug |
defaultToastDurationMs? | number | Default toast duration in ms (default: 4000). | Omit.defaultToastDurationMs |
maxItems? | number | Maximum items to load on initial fetch (default: 100). | Omit.maxItems |
onError? | (error) => void | Error callback. Called for every operational failure. | Omit.onError |
onNotify? | CANotifyFn | Notification callback. If omitted, hook errors surface via error state only. | Omit.onNotify |
onToast? | (item, durationMs) => void | Toast handler. Called when addNotification is invoked with mode toastOnly or toastAndList. Defaults to onNotify if provided; otherwise toast emission is skipped. | Omit.onToast |
retryPolicy? | ICARetryPolicy | Retry 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). | - |
service | ICATabularService<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. | - |