<?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>Email attachment issue</title><link>https://community.appian.com/discussions/f/general/28123/email-attachment-issue</link><description>Hi, 
 I am using a smart service called &amp;quot;Export Data Store Entity to Excel&amp;quot; and generating a document and storing in a pv! variable. 
 Now, when I try to attach the same document in the &amp;quot;Send E-Mail&amp;quot; service, I am getting an error. I passed the variable</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Email attachment issue</title><link>https://community.appian.com/thread/109642?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2023 17:13:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:515df52f-4a97-430e-943d-6b27cb03cf32</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;As a secondary thing, be careful when you use &amp;quot;now()&amp;quot; to append a value to the filename.&amp;nbsp; &amp;quot;now()&amp;quot; when cast as text will create a date with slash and colon (&amp;quot;:&amp;quot;) characters in it - that will work (afaik) decently in Appian but will cause issues when anyone tries to download such a file since slashes are strictly disallowed in filenames in most PC filesystems.&lt;/p&gt;
&lt;p&gt;My normal trick to handle this is to set the filename with a safe string like &amp;quot;&lt;em&gt;&lt;strong&gt;ExcelExport - &amp;quot; &amp;amp; text(now(), &amp;quot;yyyy-mm-dd hh.mm.ss&amp;quot;)&lt;/strong&gt;&lt;/em&gt;&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Email attachment issue</title><link>https://community.appian.com/thread/109641?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2023 16:40:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7e436a6b-afec-4fed-bb3e-25820913d323</guid><dc:creator>swapnar6405</dc:creator><description>&lt;p&gt;Thank you Sanchit. I got it.&lt;/p&gt;
&lt;p&gt;Great help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Email attachment issue</title><link>https://community.appian.com/thread/109640?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2023 16:37:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7e93403c-609e-4859-86a6-87441d98c615</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;As I told you pv!reportname do not contain your generated document it just have a text for document name, use the pv!NewDocument in attachments for send E-mail service.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Email attachment issue</title><link>https://community.appian.com/thread/109639?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2023 16:33:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:670e94ca-821e-42b6-8c37-f86a49bce419</guid><dc:creator>swapnar6405</dc:creator><description>&lt;p&gt;Hi did setup in the Outputs tab too. But no luck. Could you check below attached screen shots please.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1679070553739v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1679070648301v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1679070589250v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1679070721616v4.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Email attachment issue</title><link>https://community.appian.com/thread/109638?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2023 16:21:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9ccf8aad-0971-4410-85cb-938038af4400</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You are not saving the generated document correctly here, your pv!reportName will just have the name of document which you are passing in value.&lt;/p&gt;
&lt;p&gt;The generated new document can be saved into a pv from Output tab from Results&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img height="150" src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1679070113305v1.png" width="249" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>