Which table record creates a notification?
System tables —> Main —> Notifications —> Notifications
One row — one notification!
If you want to create the same notification for three users, how many rows should be added to the notification table?
For each user, a line needs to be added.
Why are notification codes needed?
Notification codes are notification templates.
System tables —> Main —> Notifications —> Notification codes
They have name and code. When a notification is generated for the user, it uses the code from Notification codes.
How to create a notification manually?
System tables —> Main —> Notifications —> Add notification
Which function creates a notification by code?
You need to add a row to the notifications table, like this:
=: insert(table: 'notifications'; field: 'code' = "admin_text"; field: 'active_dt_from' = $#ndt; field: 'title' = "Notification title that will be shown in the recent notifications table"; field: 'user_id' = 1; field: 'vars' = $vars; field: 'active' = true)
vars: rowCreate(field: "text" = "Notification text")
In the Notification Codes:
=: linkToDataHtml(title: 'Important message'; html: $#text)
What are the conditions for creating a notification?
For any — if a row is created in the notifications table.
What parameter must be passed to the notification table for it to be shown to the user?
All parameters of the notifications table must be filled in.
Pay special attention to active - it is often forgotten to be passed as true.