SendEmail Is there a way to insert a Text or HTML Email Template at

SendEmail

Is there a way to insert a Text or HTML Email Template at runtime in the SendEmail Smart Service?

For e.g. I want to select an Email Template based on Language at runtime.

If Language = Spanish , Select Spanish Template
If Language = French, Select French Template
If Language = English, Select English Template

Etc.

I don't see this option currently?

How can we achieve this with a Text or HTML Template?

...

OriginalPostID-63550

OriginalPostID-63550

  Discussion posts and replies are publicly visible

Parents
  • Of course. You create an expression with content like this

    Parameters: template_document, data_cdt

    = textfromtemplate ( ri!template_document , { "name" , "prize" , "description"} , {ri!data.name, if(isnull(ri!data.prize), "---", fixed ( ri!data.prize, 2 )), substitute(ri!data.description, char(10)})

    Your template (a plain text file) looks like:

    <p>###name###</p>
    <p>###prize###</p>
    <p>###description###</p>
Reply
  • Of course. You create an expression with content like this

    Parameters: template_document, data_cdt

    = textfromtemplate ( ri!template_document , { "name" , "prize" , "description"} , {ri!data.name, if(isnull(ri!data.prize), "---", fixed ( ri!data.prize, 2 )), substitute(ri!data.description, char(10)})

    Your template (a plain text file) looks like:

    <p>###name###</p>
    <p>###prize###</p>
    <p>###description###</p>
Children
No Data