<?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>Send E-Mail smart service</title><link>https://community.appian.com/discussions/f/process/24311/send-e-mail-smart-service</link><description>Hi, 
 I am using send e-mail smart service to send an email notification which is internally using HTML template. 
 Initially, I have designed a template with few variables using ### and which are working perfect. 
 Later on I have added few more variables</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Send E-Mail smart service</title><link>https://community.appian.com/thread/93997?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 02:44:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0d325404-cef2-4184-9f5f-ce7148220d48</guid><dc:creator>Hari Kishore Reddy</dc:creator><description>&lt;p&gt;I am entering the below lines of code in the expression editor, my code is&amp;nbsp; getting trim by default and I am encountering the issue.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there any limit on the number of characters on the expression editor?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1650595331375v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1650595150697v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send E-Mail smart service</title><link>https://community.appian.com/thread/93990?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 02:03:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8b95ec0f-fc23-4e98-a372-ed2f531af1c8</guid><dc:creator>Hari Kishore Reddy</dc:creator><description>&lt;p&gt;It seems to be this idea is working. I have to complete&amp;nbsp;full blown solution before confirmation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send E-Mail smart service</title><link>https://community.appian.com/thread/93988?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 01:18:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:868d6ff9-a5fb-42a6-8427-1bbbce3bbca6</guid><dc:creator>Naresh</dc:creator><description>&lt;p&gt;Ok Understood.&amp;nbsp;with out seeing your code it is hard to find the root cause. Other alternative way is&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In your process add a script task before email node. In script task output call your email body rule and save the value into new process variable (ex: emailBody (type Text))&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Then call your process variable in your email body using expression editor&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;hope this will solve your issue&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send E-Mail smart service</title><link>https://community.appian.com/thread/93987?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 01:12:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:23854b8b-e9f7-45e9-90a5-76ecbeed6d8a</guid><dc:creator>Hari Kishore Reddy</dc:creator><description>&lt;p&gt;Code is there in a restricted system, so I can&amp;#39;t&amp;nbsp;bring the code here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send E-Mail smart service</title><link>https://community.appian.com/thread/93986?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 01:08:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:79788314-4aaa-446a-834f-bda91cfbe6d8</guid><dc:creator>Hari Kishore Reddy</dc:creator><description>&lt;p&gt;I tried,&lt;/p&gt;
&lt;p&gt;still I am getting same error&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1650589643982v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1650589706214v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send E-Mail smart service</title><link>https://community.appian.com/thread/93983?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 00:37:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:01f36de2-04a5-4713-b9f5-c4ef37865820</guid><dc:creator>Naresh</dc:creator><description>&lt;p&gt;In your code at line no 9 I see an &amp;quot;=&amp;quot; can you remove that &amp;quot;=&amp;quot; and try&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send E-Mail smart service</title><link>https://community.appian.com/thread/93982?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 00:34:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3659123d-9460-43c7-8446-79ff280084da</guid><dc:creator>Naresh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you send the actual email body, not the image. you can inset your code using insert option.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/Sample-Code-Inset-Image.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;You can replace any sensitive content with other text if any&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send E-Mail smart service</title><link>https://community.appian.com/thread/93981?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 00:29:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08495a26-4f8f-4a12-aec2-5ccf06711b88</guid><dc:creator>Hari Kishore Reddy</dc:creator><description>&lt;p&gt;Expression rule:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1650587322716v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Email body code:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1650587369839v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send E-Mail smart service</title><link>https://community.appian.com/thread/93979?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 00:23:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ba65c31d-a707-49cd-b9a6-5df4e93591a5</guid><dc:creator>Naresh</dc:creator><description>&lt;p&gt;Hi Hari,&lt;/p&gt;
&lt;p&gt;Can you send us the email body content not the expression rule.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send E-Mail smart service</title><link>https://community.appian.com/thread/93978?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 00:17:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:55a02ba8-b23a-419f-aaa5-e27ef2621727</guid><dc:creator>Hari Kishore Reddy</dc:creator><description>&lt;p&gt;Hi Naresh,&lt;/p&gt;
&lt;p&gt;Let me know if you need any further information on this.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send E-Mail smart service</title><link>https://community.appian.com/thread/93906?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2022 20:55:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f3726722-d15f-4f03-b13a-d92a45569aff</guid><dc:creator>Hari Kishore Reddy</dc:creator><description>&lt;p&gt;Please find the below attached screen shot of email body code.&lt;/p&gt;
&lt;p&gt;I have clicked on pencil/pen icon and wrote the code. Once after &amp;quot;SAVE AND CLOSE&amp;quot; button was clicked it was throwing and message which I have stated earlier.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1650488026251v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send E-Mail smart service</title><link>https://community.appian.com/thread/93868?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2022 13:41:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ce8be95b-a525-4d08-b095-6404430570c1</guid><dc:creator>Naresh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you able to share your email body code.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send E-Mail smart service</title><link>https://community.appian.com/thread/93838?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2022 10:28:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:58d5cb38-06ce-47dd-855f-6c03f4e8fa53</guid><dc:creator>Hari Kishore Reddy</dc:creator><description>&lt;p&gt;Can someone suggest the solution please.&amp;nbsp;TIA.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send E-Mail smart service</title><link>https://community.appian.com/thread/93821?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 17:44:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e8e50aff-d923-4189-bc18-9e1daee49e28</guid><dc:creator>Hari Kishore Reddy</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have defined the expression rule like below attached screen shot and added rule inputs as parameters and I am passing values to these rules inputs while calling the expression rule from Send E-Mail smart service.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1650389992937v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have selected the option called &amp;quot;Enter text here&amp;quot; and selected &amp;quot;Insert an expression&amp;quot; pencil icon and passed pv variable values to the rule input then I am getting below screen.&lt;/p&gt;
&lt;p&gt;Let me know if I have to&amp;nbsp;select any option or flow to avoid this issue.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1650390100158v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send E-Mail smart service</title><link>https://community.appian.com/thread/93804?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 15:33:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0a86d560-8b8d-41a5-bdd8-b6d659317561</guid><dc:creator>Naresh</dc:creator><description>&lt;p&gt;Hi Hari, you need to create an expression rule for email body and call that expression rule here. You won&amp;#39;t see that error if you use expression rule&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send E-Mail smart service</title><link>https://community.appian.com/thread/93799?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 14:39:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4d5bfa9b-57ab-47fa-955e-37bb9af7db24</guid><dc:creator>Hari Kishore Reddy</dc:creator><description>&lt;p&gt;It seems to be it is also a not a perfect solution.&lt;/p&gt;
&lt;p&gt;I have defined an expression rule along with rule inputs and passed all the required PV variables as parameters to the rule input.&lt;/p&gt;
&lt;p&gt;After words, I got the below message.&lt;/p&gt;
&lt;p&gt;Is there any perfect and alternative solution for this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1650379048558v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send E-Mail smart service</title><link>https://community.appian.com/thread/93795?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 12:57:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:39c89370-c844-44f9-9635-a2a5086d3474</guid><dc:creator>Hari Kishore Reddy</dc:creator><description>&lt;p&gt;Also, not sure about any limitations on the number of HTML template parameters, may be due to that reason is not working as expected. My current template is having more than 20 parameters.&lt;/p&gt;
&lt;p&gt;Could you please suggest under which option/tab, I can use the expression rule which you have suggested.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1650373070766v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send E-Mail smart service</title><link>https://community.appian.com/thread/93794?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 12:40:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f4f3a233-38ad-4d3a-9a79-9f83f62951e5</guid><dc:creator>Hari Kishore Reddy</dc:creator><description>&lt;p&gt;Thanks for you&amp;nbsp;replying to my post and your suggestion. Let me give a try with your suggestion.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In the case of HTML template with variables ###, even after Re-Scan also it is not working some times.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send E-Mail smart service</title><link>https://community.appian.com/thread/93760?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 03:22:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9124b741-2ba6-4a15-82d3-35844909793b</guid><dc:creator>Naresh</dc:creator><description>&lt;p&gt;Hi Hari Kishore,&lt;/p&gt;
&lt;p&gt;Usually the HTML template will not work properly any time an update is made to that template, to work HTML template properly you need to re-scan the template every time you update the template.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To avoid this situation I would suggest use Appian expression rule to construct your email body. This will give more control to handle you email content, you can use HTML tags to make your content different styles (Ex: Bold, Italic, links, different color etc...) See below for sample code to construct email body in expression rule.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;concat(
  &amp;quot;The is sample text &amp;quot;,
  &amp;quot;&amp;lt;br&amp;gt;&amp;quot;, char(10),
  &amp;quot;&amp;lt;br&amp;gt;&amp;quot;, char(10),
  &amp;quot;&amp;lt;b&amp;gt;&amp;quot;, &amp;quot;Title1: &amp;quot;, &amp;quot;&amp;lt;/b&amp;gt;&amp;quot;, pv!titleDescription /*your pv to map*/,
  &amp;quot;&amp;lt;br&amp;gt;&amp;quot; &amp;amp; char(10),
  &amp;quot;&amp;lt;b&amp;gt;&amp;quot;, &amp;quot;Title2: &amp;quot;, &amp;quot;&amp;lt;/b&amp;gt;&amp;quot;, pv!titleDescription2 /*your pv to map*/,
  &amp;quot;&amp;lt;br&amp;gt;&amp;quot; &amp;amp; char(10),
  &amp;quot;&amp;lt;br&amp;gt;&amp;quot; &amp;amp; char(10),
  &amp;quot;This is end of text&amp;quot;,
  &amp;quot;&amp;lt;br&amp;gt;&amp;quot; &amp;amp; char(10),
  &amp;quot;&amp;lt;br&amp;gt;&amp;quot; &amp;amp; char(10),
  &amp;quot;Regards, &amp;quot;,
  &amp;quot;&amp;lt;br&amp;gt;&amp;quot; &amp;amp; char(10),
  &amp;quot;Your Sender&amp;quot;
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>