--- title: Pass Custom Fields and Data to the Notification description: How to extend the NotificationModel and pass custom fields with dynamic data to each notification popup. type: how-to page_title: Pass Custom Fields and Data to the Notification slug: notification-custom-model-data position: tags: notification, custom, model, data ticketid: 1543051 res_type: kb --- ## Environment
Product Notification for Blazor
## Description I need to get a custom field with different value to each notification (i.e. the ID of a database record). How to pass custom data and use it in the notification popup template? ## Solution 1. Implement a `class` that inherits from [`Telerik.Blazor.Components.NotificationModel`](/blazor-ui/api/Telerik.Blazor.Components.NotificationModel). For example, `MyExtendedNotificationModel`. 1. Add the required properties to the new class. 1. Pass a `MyExtendedNotificationModel` instance to the Notification [`Show` method]({%slug notification-open-close-hide%}). This will allow you to set the custom properties. 1. In the [Notification `