How does the DBTable notification channel work?

Started by saksham.adyso, September 06, 2024, 08:12:25 AM

Previous topic - Next topic

saksham.adyso

In the documentation there are only parameters. The database connection is clear, but how does the QueryTemplate parameter work? How do I write a custom notification to the table?

Filipp Sudanov

QueryTemplate is the actual sql query, where ? sign works as macro, it's first occurrence is replaced by recipient and second by message body. E.g.:

QueryTemplate=insert into notifications values (?, ?);