Define the data object
You define the data object inside an in-app step in your workflow on the Novu dashboard. Each entry is a key-value pair, referred to as a property. You can define up to 10 properties per in-app step. Each property can be:- Static: Fixed values such as “status”: “merged” or “icon”: “heart”. or
- Dynamic: Values derived from subscriber or payload data, such as
{{subscriber.firstName}}or{{payload.issueId}}.

The data object supports only scalar values, such as strings, numbers, booleans, or null. String values are limited to 256 characters. There is a limit of 10 data object properties per in-app step.
Use the data object in the <Inbox />
The data object is available on the frontend asnotification.data. You can use it inside the renderNotification function to customize how each notification is displayed.
Add type safety (optional)
For TypeScript users, define a NotificationData interface to ensure type safety when accessingnotification.data.
notification.data, reducing errors when accessing properties.