I am attempting to use a variable defined in the workpad in the timefilter
but I can't seem to figure it out.
timefilter column="dates.createDate" from="now-{var \"query_timeframe\"}h" to="now"
Use of the variable does work in Markdown.
| markdown {context} " Errored queries in " {var "query_timeframe"} " hrs"
wylie
(Wylie Conlon)
February 25, 2021, 7:06pm
2
You can't put expressions in strings. You can construct concatenated strings. So try this:
timefilter column="dates.createDate" from={string "now-" {var "query_timeframe"} "h"} to="now"
That did it. Thanks again!
system
(system)
Closed
March 25, 2021, 7:25pm
4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.