Forum Discussion
Neither scenario works, Invalid Template...
Not sure that it matters, the email is a callable pipeline.
I think you're right, the time I put into trying to get this resolve would have been better spent converting it in the record.
------------------------------
Thank you so much,
v/r,
Chuck
------------------------------
Strange. I am using the new Pipelines editor and I have it setup like this:
Where dur_1 is a duration field writing to a text field. When I put a duration of 2 days in dur_1 the pipeline process and I get the following with no issue/errors
------------------------------
Chayce Duncan
------------------------------
- CharlesDulaney2 years agoQrew Trainee
I am beginning to see some consistent results with your help on the duration, thank you so much.
------------------------------
Thank you so much,
v/r,
Chuck
------------------------------- CharlesDulaney2 years agoQrew Trainee
Chayce,
Any thoughts on my secondary issue above? No matter what I do (text or HTML) I am getting linefeeds that I do not want.
HTML
Text is even worse
This all appears to associated with the IF/Else statements
further down the email, it functions properly with <br> and single linefeeds
------------------------------
Thank you so much,
v/r,
Chuck
------------------------------- DougHenning12 years agoCommunity Manager
You can suppress the line breaks in Jinja by adding a hyphen before the ending tag:
{# Duration between two dates -#} {% if b.dur_1 > 0 -%} Duration: {{b.dur_1 / 86400000}} Days {% else -%} No Duration {% endif -%}
------------------------------
Doug Henning
------------------------------