# Canvas : is it possible to send varaibles to esql, edocs query argument or is it a limitation in canvas

**URL:** <https://discuss.elastic.co/t/canvas-is-it-possible-to-send-varaibles-to-esql-edocs-query-argument-or-is-it-a-limitation-in-canvas/181524>\
**Category:** Kibana\
**Tags:** canvas\
**Created:** [May 17, 2019, 7:03am UTC](https://discuss.elastic.co/t/canvas-is-it-possible-to-send-varaibles-to-esql-edocs-query-argument-or-is-it-a-limitation-in-canvas/181524 "2019-05-17T07:03:16Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [May 29, 2019, 5:44pm UTC](https://discuss.elastic.co/t/canvas-is-it-possible-to-send-varaibles-to-esql-edocs-query-argument-or-is-it-a-limitation-in-canvas/181524/5 "2019-05-29T17:44:15Z")

</div>

I suspect your question is related to your other question at [Canvas : Need to parse the values of 2 filters to the essql](https://discuss.elastic.co/t/canvas-need-to-parse-the-values-of-2-filters-to-the-essql/181166/3).

In short, there's not currently a way to apply filters as an OR argument in a query. What this means is that if you create two different filters and use them in the expression, they will be used as an AND condition. So this means something like `filters | essql ...`isn't an option currently.

The alternative method would be to somehow use the filter values in the sql query itself, something like `essql {string "SELECT ... WHERE " {filters | to string}} ...`. The idea is that you could capture the filter values and just use them in the query string. This is also a non-option as there's no way to map a filter's value into a string value, so it can't be substituted into the query string.

This is all a pretty round-about way to tell you you can't do what you're trying to do in Canvas, at least not today. I'll admit that this does seem like a perfectly natural request though, and I'd recommend opening an issue about it on Kibana's [issue tracker](https://github.com/elastic/kibana/issues). Supporting OR in filters would enabled what you want, without having to modify the query directly, and that seems like a feature we should add, and soon.

---

_[View the full topic](https://discuss.elastic.co/t/canvas-is-it-possible-to-send-varaibles-to-esql-edocs-query-argument-or-is-it-a-limitation-in-canvas/181524)._
