Flow Action
The Notifier plugin adds a new Flow Action: 'Send Notifier Notification'.
This action is available for every flow trigger, and is thus working for, but not limited to, customer triggers, orders triggers, custom triggers, ...
Twig templating
Every Flow that gets executed has certain context data. This is depending on which Trigger triggered the flow.
For example, the 'Payment Status Paid' flow, will contain information about the transaction and the order. This data can be used in the Message
of the Notifier action to directly include relevant information into your notification message.
As an example, the message:
New order placed
Number: {{ order.orderNumber }}
Customer: {{ order.orderCustomer.firstName }} {{ order.orderCustomer.lastName }}
will send the following message:
New order placed
Number: 202392843
Customer: John Doe
Data available
Depending on the (custom) trigger from your flow, different data is available. Commonly available data-objects are order
, customer
, transaction
, ... But availability of these objects depend on the specific trigger of the flow.