I have created a email notification template, where I need to support Tabular data from a dynamic data set. I am using liquid syntax which will be parsed and placeholders are being replaced at API side. Below is the example code attached. The problem is when I try to use a for loop syntax (from liquid), it moved the loop body outside of the table. Please suggest a way I can handle this problem.
Thanks in Advance...!!
This is how I want it to be
**{% for location in SamplingLocationDetails %}**
**{% endfor %}**
| Sampling Location |
Sample Location Detail |
Sampling Date |
Sampling Time |
Seal Number |
| {{ location.Sampling_Location }} |
{{ location.Sample_Location_Detail }} |
{{ location.Sampling_Date }} |
{{ location.Sampling_Time }} |
{{ location.Seal_Number }} |
This is how it becomes after change
{% for location in SamplingLocationDetails %}
{% endfor %}
Sampling Location
Sample Location Detail
Sampling Date
Sampling Time
Seal Number
{{ location.Sampling_Location }}
{{ location.Sample_Location_Detail }}
{{ location.Sampling_Date }}
{{ location.Sampling_Time }}
{{ location.Seal_Number }}
I have created a email notification template, where I need to support Tabular data from a dynamic data set. I am using liquid syntax which will be parsed and placeholders are being replaced at API side. Below is the example code attached. The problem is when I try to use a for loop syntax (from liquid), it moved the loop body outside of the table. Please suggest a way I can handle this problem.
Thanks in Advance...!!
This is how I want it to be
**{% for location in SamplingLocationDetails %}** **{% endfor %}**This is how it becomes after change
{% for location in SamplingLocationDetails %}
{% endfor %}