Skip to main content

Globals

These are the global methods and properties that can be used in a C# script or function.

Properties​

Variables​

A Dictionary<string, object> of the Variables used in the flow

Logger​

A Logger that exposes

MethodDescription
DLog(string)Debug log message
ILog(string)Information log message
WLog(string)Warning log message
ELog(string)Error log message

Flow​

This is the NodeParameters which is the main object passed to each and every flow element for execution. There are many helper methods in this object

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.

MethodDescription
Info(string title, string? message)Information notification
Success(string title, string? message)Success notification
Warning(string title, string? message)Warning notification
Error(string title, string? message)Error notification

The message is optional.

Notification.Warning("Disk space low", "Only 20 GB left on /media");

Methods​

SendNotification​

Sends a notification that will be shown in the web console. Using Notification is recommended instead.

Critical notifications are reserved for FileFlows itself, a critical severity is sent as an error.

Parameters​

NameTypeDescription
severitystringEither error, warning, or information
titlestringThe title of the nofication
messagestringOptional message/body to go along with the notification