Insert calculated values in an email notification

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?

Regards,

Serge








  • Edited by Serge_B Friday, January 17, 2014 2:03 PM
January 17th, 2014 3:51pm

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.

Free Windows Admin Tool Kit Click here and download it now
January 17th, 2014 11:34pm

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).

January 20th, 2014 8:39am

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.

Thx,

Free Windows Admin Tool Kit Click here and download it now
January 24th, 2014 2:58pm

Hello Mark,

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

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

Regards,

January 24th, 2014 3:00pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics