How to load a Mail Template with Dynamic Process Variables

Hi,

 

I need to send a mail with a particular template where i need to mention the Field values. This needs to be dynamic and independent to each case.

 

Could any one suggest me how to do this in Metastorm 9.0

 

Thanks and Regards

Sundeep

Tagged:

Comments

  • Ethan Beisher
    Ethan Beisher E Community Moderator

    You can build the templates in various places.

     

    The easiest development-wise would be to create some hard-coded templates in the Solution itself. You can have pre-configured Mail Templates (i.e., several calculated Memo Fields) that concatenate a bunch of strings including your variables. 

     

    A slightly more complicated buy dynamic way would be to store the contents of the e-mail in a place you can alter at run time such as a database table or a file. You can create a Metastorm form to allow the user to manipulate these templates. These templates would have special codes in them (e.g., #INVOICE_NUMBER#). When sending the e-mail, you can use C# code (e.g., string.Format()) to dynamically populate the field values. This will require some training of the users to know which variables will be available.