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
@raghav_a.
Could you please share the exact payload and content you want to use for notifications?
payload: {
"'message": "{{x}} created",
"x": "x_val"
}
I want notification message as "x_val created", how can do so using handlebars in message template?
@raghav_a.
Checkout this video for quick explanation
https://www.loom.com/share/2fce3daf420749788eb4d0dd66747747?sid=09d04fda-a117-4d3f-a13e-13db2690356e
Wow didn't know you can set default variables and mark them as required - this is something I really needed! Great news!
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