NetXMS Support Forum

English Support => General Support => Topic started by: saksham.adyso on September 06, 2024, 08:12:25 AM

Title: How does the DBTable notification channel work?
Post by: saksham.adyso on September 06, 2024, 08:12:25 AM
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?
Title: Re: How does the DBTable notification channel work?
Post by: Filipp Sudanov on September 06, 2024, 11:53:03 AM
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 (?, ?);