Skip to main content

Notification

Notification sends a notification to the FileFlows notifications, the bell in the top bar of the web console. If the web console is open when the notification is sent, it also pops up on screen.

It is available in all JavaScript Functions and Scripts, including flow scripts, system scripts, tasks and webhooks.

Notification.Info('Library scan complete');
Notification.Success('Backup finished', 'The backup was copied to the NAS');
Notification.Warning('Disk space low', 'Only 20 GB left on /media');
Notification.Error('Failed to contact Sonarr', 'The API returned 401, check the API key');
MethodDescription
Info(title, message)Sends an information notification
Success(title, message)Sends a success notification
Warning(title, message)Sends a warning notification
Error(title, message)Sends an error notification

The message is optional. A notification with an empty title is not sent, and a warning is logged instead.

note

Critical notifications are reserved for FileFlows itself and can not be sent from a script.

C# scripts have the same Notification global, see Globals.

In a flow, the Notification flow element does the same without a script.