<@ULVA73B9P> I set up an automation to send MS Tea...
# ask-marvin
a
@Marvin I set up an automation to send MS Teams notifications but I can't get linebreaks and other Jinja formatting to work. Is this just an issue with Teams?
m
It seems there aren't any specific issues reported with MS Teams notifications and Jinja formatting in Prefect. However, Jinja templates can be used to dynamically format notifications, including the use of line breaks and other formatting options. You might want to ensure that your Jinja syntax is correct and that MS Teams supports the formatting you're trying to implement. Here's a general approach to using Jinja for formatting in notifications: 1. Line Breaks: Use the
\n
character for line breaks in your template. However, keep in mind that MS Teams may not render these as expected due to its own formatting rules. 2. Jinja Filters: Utilize Jinja filters like
default
to handle missing values or format strings. You can review the Prefect documentation on webhook triggers and automations triggers for more details on using Jinja in your templates. If you're still facing issues, it might be worth checking if MS Teams has specific markdown or formatting requirements that could be affecting how your messages are displayed.