Hi,
I am trying to use Looker API: run_inline_query(result_format, body).
It works as expected with simple filter conditions based on equality. I am also able to get it work with multiple equality based conditions.
- I am struggling to provide, multiple values for 1 condition with an OR. So, the example below filters on (socks AND shirts). I want to filter on (socks OR shirts) - Just like looker interface.
- How do I provide non equality bases conditions: For e.g. date between ‘2001-01-01’ and ‘2001-12-31’?
- How do I check IS NULL?
- How do I check for functions like substring (contains)?
- How do I provide negative conditions - like ‘NOT equal to’ or ‘does not contain’?
I am very well familiar with SQL but new to JSON.
Body format is:
{
“model”:“thelook”,
“view”:“inventory_items”,
“fields”:[“category.name”,“inventory_items.days_in_inventory_tier”,“products.count”],
“filters”:{“category.name”:[“socks”,“shirts”]},
“sorts”:[“products.count desc 0”],
“limit”:“500”,
“query_timezone”:“America/Los_Angeles”
}