You can use the mustache templating system to create more meaningful notifications.
You can substitute any of the attributes of an event into notifications sent out by your subscription to that event. For example, when you call the ListEventTypes API to examine the PortfolioCreated
event, you see it has seven common string attributes in the headerSchema
and two specific string attributes in the bodySchema
:
You can use these attributes encapsulated in {{
}}
characters as placeholders for values generated by the event. Note you must prefix attributes appropriately with either Header.
or Body.
For example, you could create an email notification as follows:
The person receiving the email might see: