N
Novu12mo ago
raghav_a.

Handlebar substitution inside a handlebar

There's "message" field in payload of an event which contains a string "{{x}} created" and "x" is also a field in payload. How to use this in template?
5 Replies
Pawan Jain
Pawan Jain12mo ago
@raghav_a. Could you please share the exact payload and content you want to use for notifications?
raghav_a.
raghav_a.OP12mo ago
payload: { "'message": "{{x}} created", "x": "x_val" } I want notification message as "x_val created", how can do so using handlebars in message template?
dmgarland
dmgarland12mo ago
Wow didn't know you can set default variables and mark them as required - this is something I really needed! Great news!
raghav_a.
raghav_a.OP12mo ago
Thats fine @Pawan Jain . I actually wanted to use a single workflow for all the notifications in order to use novu's digest effectively. since u said its not possible , will think of it
Want results from more Discord servers?
Add your server