<?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>How to embed HTML in an expression rule</title><link>https://community.appian.com/discussions/f/rules/23507/how-to-embed-html-in-an-expression-rule</link><description>Hi all , 
 I have to generate a table with the help of html . Is there any way to create . Please let me know know the ways</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to embed HTML in an expression rule</title><link>https://community.appian.com/thread/90181?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 14:37:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:597bd900-af3c-4bfe-ac3f-bc2a1b7e5375</guid><dc:creator>agam</dc:creator><description>&lt;p&gt;Hi Saurabh,&lt;/p&gt;
&lt;p&gt;It depends on how the Google API is expecting the request format to be&lt;/p&gt;
&lt;p&gt;You can try / check in their documentation&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to embed HTML in an expression rule</title><link>https://community.appian.com/thread/90128?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 03:39:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:72f88443-0070-42e9-a10a-ecd844b4e890</guid><dc:creator>saurabh sharma</dc:creator><description>&lt;p&gt;Hi agam , thanks for replying will this grid will work in Google chat . Means I have to send a message in Google chat &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to embed HTML in an expression rule</title><link>https://community.appian.com/thread/90118?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 22:33:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:99eb4a1a-ff98-4e35-a00c-fbb74181ed71</guid><dc:creator>agam</dc:creator><description>&lt;p&gt;Hi Saurabh,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;if your requirement is to send the request body in HTML text with only 3 columns and your current expression rule also provides the HTML table.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a code snippet where you can remove some un-necessary variables, hope it helps.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!data: {
    {
      date: today(),
      link: {
        href: &amp;quot;https://www.google.com&amp;quot;,
        value: &amp;quot;Google&amp;quot;
      }
    },
    {
      date: today() - 4,
      link: {
        href: &amp;quot;https://community.appian.com&amp;quot;,
        value: &amp;quot;Community&amp;quot;
      }
    },
    {
      date: today() + 3,
      link: { href: &amp;quot;&amp;quot;, value: &amp;quot;Appian&amp;quot; }
    }
  },
  joinarray(
    {
      &amp;quot;&amp;lt;table&amp;gt;&amp;quot;,
      &amp;quot;&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;S.No.&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Date&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Links&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&amp;quot;,
      a!forEach(
        items: local!data,
        expression: concat(
          &amp;quot;&amp;lt;tr&amp;gt;&amp;quot;,
          &amp;quot;&amp;lt;td&amp;gt;&amp;quot; &amp;amp; fv!index &amp;amp; &amp;quot;&amp;lt;/td&amp;gt;&amp;quot;,
          &amp;quot;&amp;lt;td&amp;gt;&amp;quot; &amp;amp; text(fv!item.date, &amp;quot;mmm dd yyyy&amp;quot;) &amp;amp; &amp;quot;&amp;lt;/td&amp;gt;&amp;quot;,
          &amp;quot;&amp;lt;td&amp;gt; 
          &amp;lt;a href=&amp;#39;&amp;quot; &amp;amp; a!defaultValue(fv!item.link.href, &amp;quot;#&amp;quot;) &amp;amp; &amp;quot;&amp;#39;&amp;gt;&amp;quot; &amp;amp; fv!item.link.value &amp;amp; &amp;quot;&amp;lt;/a&amp;gt;&amp;quot;,
          &amp;quot;&amp;lt;/td&amp;gt;&amp;quot;,
          &amp;quot;&amp;lt;/tr&amp;gt;&amp;quot;
        )
      ),
      &amp;quot;&amp;lt;/table&amp;gt;&amp;quot;
    },
    char(10)
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The above code displays as below on a browser&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/15/pastedimage1643063728140v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to embed HTML in an expression rule</title><link>https://community.appian.com/thread/90062?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 05:47:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0c39cf06-af2a-44cd-9d0c-58905e1f3803</guid><dc:creator>saurabh sharma</dc:creator><description>&lt;p&gt;As I mentioned above I have to send a message via Google chat . So want it to in a proper format &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to embed HTML in an expression rule</title><link>https://community.appian.com/thread/90061?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 05:45:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a51bf12e-2356-47df-a4aa-ae5426100a95</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;When you already have data in your local variables, then why do you want to convert it in HTML first and then render the HTML on Interface?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to embed HTML in an expression rule</title><link>https://community.appian.com/thread/90060?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 05:41:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:389a35bc-04a6-40b1-bb7e-d5fe04f2b0a5</guid><dc:creator>saurabh sharma</dc:creator><description>&lt;p&gt;I have to send a message in google chat . i have working Google integration to send message . just I want to create a message with SNO ||&amp;nbsp; Date || links&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to embed HTML in an expression rule</title><link>https://community.appian.com/thread/90059?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 05:39:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e865db90-cca0-468a-9e72-b67b6aaf2dbf</guid><dc:creator>saurabh sharma</dc:creator><description>&lt;p&gt;a!localVariables(&lt;br /&gt; local!data:rule!T_createDictionary(final: null),&lt;br /&gt; local!titles:{&amp;quot;Name&amp;quot;,&amp;quot;Age&amp;quot;},&lt;br /&gt; local!startTable:&amp;quot;&amp;lt;table&amp;gt;&amp;quot;,&lt;br /&gt; local!closeTable:&amp;quot;&amp;lt;/table&amp;gt;&amp;quot;,&lt;br /&gt; local!startRowtitle:&amp;quot;&amp;lt;td&amp;gt;&amp;quot;,&lt;br /&gt; local!closeRowtitle:&amp;quot;&amp;lt;/td&amp;gt;&amp;quot;,&lt;br /&gt; local!startRowitemTitle:&amp;quot;&amp;lt;tr&amp;gt;&amp;quot;,&lt;br /&gt; local!closeRowItemTitle:&amp;quot;&amp;lt;/tr&amp;gt;&amp;quot;,&lt;br /&gt; local!startRow:&amp;quot;&amp;lt;tr&amp;gt;&amp;quot;,&lt;br /&gt; local!closeRow:&amp;quot;/tr&amp;gt;&amp;quot;,&lt;br /&gt; local!startItemRow:&amp;quot;&amp;lt;td&amp;gt;&amp;quot;,&lt;br /&gt; local!closeItemrow:&amp;quot;&amp;lt;/td&amp;gt;&amp;quot;,&lt;br /&gt; local!output:&lt;br /&gt; {&lt;br /&gt; local!startTable &amp;amp; local!startRow &amp;amp; joinarray(&lt;br /&gt; a!forEach(&lt;br /&gt; items: local!titles,&lt;br /&gt; expression: {&lt;br /&gt; local!startRowtitle &amp;amp; fv!item &amp;amp; local!closeRowtitle&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; ),&lt;br /&gt; &amp;quot;&amp;quot;&lt;br /&gt; ) &amp;amp; local!closeRow &amp;amp; joinarray(&lt;br /&gt; a!forEach(&lt;br /&gt; items: local!data,&lt;br /&gt; expression: &lt;br /&gt; /*items with data*/&lt;br /&gt; local!startRow &amp;amp; local!startItemRow &amp;amp; &amp;quot; &amp;quot; &amp;amp; index(&lt;br /&gt; fv!item,&lt;br /&gt; &amp;quot;name&amp;quot;,&lt;br /&gt; null&lt;br /&gt; ) &amp;amp; local!closeItemrow&lt;br /&gt; &lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; &lt;br /&gt; local!output&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to embed HTML in an expression rule</title><link>https://community.appian.com/thread/90058?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 05:35:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1e094a91-ab8e-4d9a-af50-88e71563e017</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Can you paste that HTML here so I can take a look?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to embed HTML in an expression rule</title><link>https://community.appian.com/thread/90057?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 05:35:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9fc08eae-6c3d-47f4-8c69-d78cc11ab5f6</guid><dc:creator>saurabh sharma</dc:creator><description>&lt;p&gt;Then how can I achieve this . Let me know &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to embed HTML in an expression rule</title><link>https://community.appian.com/thread/90056?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 05:33:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c049da36-03c5-4595-8aca-a7ae9e244011</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Hi Saurabh.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think there is any direct way to render HTML on Appian.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>