Insert calculated values in an email notification RRS feed

  • Question

  • Hello,

    I would like to insert calculated values in an email notification. In order to do this, I use a custom activity which send the result in a workflow data and I use this workflow data in my email template.

    My problem is that my custom activity may calculate several results, but I dont know how many and I want to insert them in an html table.


    I sent the value above, but the email printed it as a string, not the table I was expected.

    <table border="1"><tr><td>value1</td></tr><tr><td>value2</td></tr></table>

    I also tried alternated values:

    &lt;table border=&quot;1&quot;&gt;&lt;tr&gt;&lt;td&gt;value1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;value2&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;

    &#139;table border=&#34;1&#34;&#155;&#139;tr&#155;&#139;td&#155;value1&#139;/td&#155;&#139;/tr&#155;&#139;tr&#155;&#139;td&#155;value2&#139;/td&#155;&#139;/tr&#155;&#139;/table&#155;


    Does anyone has a solution to send a variable list of values to be inserted in an email notification?



    • Edited by Serge_B Friday, January 17, 2014 2:03 PM
    Friday, January 17, 2014 12:51 PM

All replies

  • Hi,

    The E-mail template is actually works as an HTML or CSS page. You need to use the HTML/CSS formats to send these values in the format as you want. Use <tags> to do the formating of Email template. 

    Use function to store multiple values and thn use them into Email 

    I hope this will help. 

    Thanks~ Giriraj Singh Bhamu

    Friday, January 17, 2014 8:34 PM
  • I can't remember exactly but any HTML you provide via WorkflowData will be stripped or encoded.

    There isn't a nice solution to this and I ended up writing my own send notification activity (although that doesn't help for approvals).

    Monday, January 20, 2014 1:36 PM
  • Hello Giriraj Singh,

    How can you store multiple values in a single workflow data through the function evaluator?

    For you information, I can't use serveral workflow data because, because I don't know how many values I have. It depends on the context.




    • Edited by Serge_B Friday, January 24, 2014 12:15 PM
    Friday, January 24, 2014 11:58 AM
  • Hello Mark,

    Thank you for your reply: I reached to the same conclusion.

    But I don't want to made a custom notification activity :(




    • Edited by Serge_B Friday, January 24, 2014 12:15 PM
    Friday, January 24, 2014 12:00 PM