Hi, I'm trying to build an email that references a field on the company record associated with a contact, but it's not working.
This is the email:
{% set deprecated_tests_data = company.deprecated_tests_and_assessments %} {% if deprecated_tests_data %}
Which test(s) are being removed?
{% for line in deprecated_tests_data|split('\n') %} {% set parts = line|split(':') %} {% if parts|length == 2 %}
{{ parts[0]|trim }}, currently used in your {{ parts[1]|trim }} assessment
{% endif %} {% endfor %}
{% else %}
There are no tests being removed that are associated with your company.
{% endif %}
The 'deprecated test and assessment' field of the company associated with the contact I'm viewing the mail as is 'Cook Evaluation: Cooking Techniques', so I should see:
Which test(s) are being removed?
Cook Evaluation, currently used in your Cooking Techniques assessment
in the email preview, but it's coming up blank. Can you please help me understand what I'm doing wrong?