<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Convert Html code in expression rule</title><link>https://community.appian.com/discussions/f/rules/27358/convert-html-code-in-expression-rule</link><description>Hi Team, 
 I am trying to convert html code in my email template to dynamic so i can loop some values using expression rule but i facing some issue in syntax , Looking for the help 
 
 below is the html code 
 
 &amp;lt;!DOCTYPE html&amp;gt; &amp;lt;html&amp;gt; &amp;lt;body&amp;gt; &amp;lt;head&amp;gt; &amp;lt;link</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Convert Html code in expression rule</title><link>https://community.appian.com/thread/107237?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 11:32:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:666a31d5-0480-43b7-bb8b-06235ac70fd4</guid><dc:creator>udayasai</dc:creator><description>&lt;p&gt;tried with below logic&amp;nbsp;&amp;lt;a href=&amp;#39;&amp;quot; &amp;amp;concat(local!tomail,local!body)&amp;amp; &amp;quot;&amp;#39;&amp;gt;&amp;quot; &amp;amp; fv!item &amp;amp; &amp;quot;&amp;lt;/a&amp;gt;&amp;quot; , working fine&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks stefan for help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert Html code in expression rule</title><link>https://community.appian.com/thread/107230?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 10:01:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:19d47d56-2657-4822-b66c-145977f0db21</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;HTML parameters require quotes. I think you miss them at the highlighted spots.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/15/pastedimage1675159337259v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert Html code in expression rule</title><link>https://community.appian.com/thread/107228?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 09:33:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c9f8b6fd-032e-4714-a7bb-144005e50bc2</guid><dc:creator>udayasai</dc:creator><description>&lt;p&gt;stefan, able to generate the template, the only issue is when i click on toemail link , i was not able to populate the body, can you help over that&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;=concat(&lt;/p&gt;
&lt;p&gt;&amp;quot;&amp;lt;html&amp;gt;&amp;quot;,&lt;br /&gt;&amp;quot;&amp;lt;body&amp;gt;&amp;quot;,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;quot;&amp;lt;h2&amp;gt;&amp;quot; &amp;amp; pv!GBL_VW_RevenueRecoveryResult.bodytext &amp;amp; &amp;quot;&amp;lt;/h2&amp;gt;&amp;quot;,&lt;/p&gt;
&lt;p&gt;&amp;quot;&amp;lt;br/&amp;gt;&amp;quot;,&lt;br /&gt;&amp;quot;&amp;lt;br/&amp;gt;&amp;quot;,&lt;br /&gt;&amp;quot;&amp;lt;h2&amp;gt;Please click on any below link to submit you response&amp;lt;/h2&amp;gt;&amp;quot;,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;a!forEach(&lt;br /&gt; items: split(pv!GBL_VW_RevenueRecoveryResult.linktext,&amp;quot;,&amp;quot;),&lt;br /&gt; expression:&lt;br /&gt; concat(&lt;br /&gt; &amp;quot;&amp;lt;a href =&amp;quot;,&lt;/p&gt;
&lt;p&gt;&amp;quot;mailto:processmodeluuid0002e98e-199e-8000-273d-7f0000014e7a@cscswdev.appiancloud.com?subject=&amp;quot;,&lt;br /&gt; pv!GBL_VW_RevenueRecoveryResult.actionresultid ,&lt;br /&gt; &amp;quot;&amp;amp;body= Please dont edit subject and To-email Address, Please add your comments below&amp;gt;&amp;quot; ,&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; fv!item ,&lt;br /&gt; &amp;quot;&amp;lt;/a &amp;gt;&amp;quot;,&lt;br /&gt; &amp;quot;&amp;lt;br/&amp;gt;&amp;quot;,&lt;br /&gt; &amp;quot;&amp;lt;br/&amp;gt;&amp;quot;&lt;br /&gt; )&lt;/p&gt;
&lt;p&gt;) ,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;quot;&amp;lt;/body&amp;gt;&amp;quot;,&lt;br /&gt;&amp;quot;&amp;lt;/html&amp;gt;&amp;quot;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;i need to show user in email body&lt;span&gt;&amp;nbsp;Please dont edit subject and To-email Address, Please add your comments below when they click&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert Html code in expression rule</title><link>https://community.appian.com/thread/107199?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2023 15:30:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a418e1ad-b6a4-4e64-8ef1-1b776f450437</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You can escape quotes in strings using double-quotes like this:&lt;/p&gt;
&lt;p&gt;&amp;quot; this is a single quote &amp;quot;&amp;quot; inside a string&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert Html code in expression rule</title><link>https://community.appian.com/thread/107198?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2023 15:28:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:504516e7-43ca-4fed-bdb3-35c86f6062d4</guid><dc:creator>udayasai</dc:creator><description>&lt;p&gt;i am able to pass the value , the issue is having some syntax error in html code i generated in expression rule, that is place&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/15/pastedimage1675092537119v2.png" alt=" " /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert Html code in expression rule</title><link>https://community.appian.com/thread/107197?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2023 15:25:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:35d17580-18ac-432b-80ae-d512f57e31db</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;So you want to replace &amp;quot;###resultId###&amp;quot; with some dynamic value? Did you try the substitute() function?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert Html code in expression rule</title><link>https://community.appian.com/thread/107196?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2023 15:20:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2d13580c-c919-4da6-b183-887638c78812</guid><dc:creator>udayasai</dc:creator><description>&lt;p&gt;yes stefan, thats works fine but would like to create href links dynamically to pass value from array below is new code i tried&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt; &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;styles.css&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;h2&amp;gt;###bodytext###&amp;lt;/h2&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;br&amp;gt;&lt;br /&gt;&amp;lt;br&amp;gt;&lt;br /&gt;&amp;lt;h2&amp;gt;Please click on any below link to submit you response&amp;lt;/h2&amp;gt; &amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;amp;&lt;/p&gt;
&lt;p&gt;a!forEach(&lt;br /&gt; items:ri!methods,&lt;/p&gt;
&lt;p&gt;expression : &lt;br /&gt; &lt;br /&gt; &amp;lt;a href=&amp;quot;mailto:processmodeluuid0002e98e-199e-8000-273d-7f0000014e7a@cscswdev.appiancloud.com?subject=###resultId###&amp;amp;body=Please don&amp;#39;t edit subject and To-email Address, Please add your comments below&amp;quot;&amp;gt;fv!item&amp;lt;/a&amp;gt;&lt;br /&gt;)&lt;br /&gt;&amp;amp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert Html code in expression rule</title><link>https://community.appian.com/thread/107195?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2023 15:08:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:702adbba-3f44-4f8f-ad2a-331775a1eb56</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Seems like you want to send this by email. The &amp;quot;Send Email&amp;quot; smart service can read your template and allows you to replace the placeholders. Did you try that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>