I am trying to build a workflow to pass a query into a programmable email.
I can pass the query into a landing page, but not the email.
Please watch here for a quick example: Dropbox Capture
Code example:
{% set price_from = request.query_dict.price_from %}
{% set price_to = request.query_dict.price_to %}
<h2> Price From: {{ price_from }}</h2>
<h2> Price To: {{ price_to }}</h2>
<br><br>
{% set yacht = crm_objects("yacht") %}
{% set single_contact = crm_objects("yacht",'limit=600', 'name,yearbuilt,loaft,featuredimagesalesurl,featuredimagesales1url,featuredimagesales2url,featuredimagesales3url,featuredimagesales4url,featuredimagesales5url,featuredimagesales6url,featuredimagesales7url,featuredimagesales8url,price') %}
<!-- {# yacht #} -->
<br>
<br>
<br>
{% for single in single_contact.results %}
{% if single.price|int >=price_from|int and single.price|int <=price_to|int %}
<div class="yatch_deatil_section">
<div class="yatch_img">
{% if single.featuredimagesalesurl %}
<img src="{{ single.featuredimagesalesurl }}" style="width:100%">
{% else %}
<img src="https://f.hubspotusercontent40.net/hubfs/21272746/not-found.png" style="width:100%">
{% endif %}
</div>
<div class="yatch_info">
<p><strong>Yatch Name</strong> : {{ single.name }}</p>
<p><strong>Loaft</strong> : {{ single.loaft }}</p>
<p><strong>Yearbuilt</strong> : {{ single.yearbuilt }}</p>
<p><strong>Price</strong> : {{ single.price }}</p>
</div>
</div>
{% endif %}
{% endfor %}
<br>