Forum Discussion
How are you trying to convert it? Something like: Duration: {{a.duration / 86400000}} Day(s) works when I test it. You can try {{a.duration|int / 86400000}} to see if that works as well. Worst case you could always make a formula-text field in your record that builds that Duration: n Days(s) string and then just populate the email with that value as well instead of converting in the PIpeline.
------------------------------
Chayce Duncan
------------------------------
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
------------------------------
- ChayceDuncan2 years agoQrew Captain
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
------------------------------