In a Send Email action, is it possible to source t...
# suiteflow
j
In a Send Email action, is it possible to source the email template from a field on the transaction? It seems like the only option is to hardcode the template for each action. Could a workflow action script get around this?
t
Could you use the email template itself to run the conditions?
ie the template would have ${customfield.templatetext} as it;s only text?
j
@Tristan Day Oooh that is brilliant. Thank you, I will try that!
t
Let me know if it works @Joanna Curtis, was just an idea 🙂
good luck!
j
@Tristan Day I have been playing around with this and it works well for the most part. I'm using a rich text field type on the transaction to store the real email info, and the email template can read the rich text field accordingly. But it appears that rich text fields can't source values from other fields. For example, the rich text field can't say "Hi ${transaction.billaddressee}" like the native email template editor can. It just displays everything as a string instead of grabbing the billaddressee value. Can you think of any workarounds for that?
t
have you tried using a free-text field and inputting the HTML?