Forum Discussion
Quick_BaseJunki
Qrew Captain
Challenge Accepted!
This seems to do the trick.
To learn more about using Jinja in Pipelines, I have created a course called Intro to Jinja for Pipelines.
------------------------------
Quick Base Junkie
------------------------------
This seems to do the trick.
- "set" the multi-select field into a Jinja list using the 'split' variable on the semicolon
- Iterate on the list using the "for" statement to create the advanced query expression
- Use "if" and "loop.last" to avoid adding an 'OR' at the end of the query
To learn more about using Jinja in Pipelines, I have created a course called Intro to Jinja for Pipelines.
{% set list = a.food.split(';') %}
{% for item in list %}
{% if loop.last %}{23.HAS.'{{item}}'}
{% else %}
{23.HAS.'{{item}}'}OR{% endif %}
{% endfor %}
------------------------------
Quick Base Junkie
------------------------------
EricHaseltine1
2 years agoQrew Member
This worked perfectly for me as well.
I had to change from HAS to EX, but otherwise exactly what I needed.
Thanks!
------------------------------
Eric Haseltine
GrantWorks
------------------------------
I had to change from HAS to EX, but otherwise exactly what I needed.
Thanks!
------------------------------
Eric Haseltine
GrantWorks
------------------------------