<?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>Get Filename In Process model</title><link>https://community.appian.com/discussions/f/general/27414/get-filename-in-process-model</link><description>On file upload I want to change [Document:1234] to fileName.png. Here is what I have currently 
 
 I&amp;#39;ve tried various expression in But whatever I do, I don&amp;#39;t get the filename saved in a variable. Things tried include (but I may have done them wrong)</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Get Filename In Process model</title><link>https://community.appian.com/thread/107783?ContentTypeID=1</link><pubDate>Sun, 12 Feb 2023 01:46:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0c392365-e5d9-4606-b1d2-0fe8709a5c8f</guid><dc:creator>Abhay Dalsaniya</dc:creator><description>&lt;p&gt;Following should definitely work -&amp;nbsp;&lt;/p&gt;
&lt;p&gt;document(todocument(5454),&amp;quot;name&amp;quot;)&lt;/p&gt;
&lt;p&gt;Note: Replace 5454 with&amp;nbsp;the process variable.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1676166530113v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Filename In Process model</title><link>https://community.appian.com/thread/107370?ContentTypeID=1</link><pubDate>Thu, 02 Feb 2023 20:39:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:27f91733-230e-488c-93b0-481cc2a39c75</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;This &amp;quot;&lt;span&gt;[Document:1234]&amp;quot; is just the way Appian displays this value to you. Like Mike mentioned, call the document() function on it as it internally is only&amp;nbsp;an integer.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Filename In Process model</title><link>https://community.appian.com/thread/107368?ContentTypeID=1</link><pubDate>Thu, 02 Feb 2023 20:26:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4a07fbf1-2984-4eb0-a699-ff9ff05bfd39</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;if pv!image is a &amp;quot;document&amp;quot; type variable, then when it&amp;#39;s populated it&amp;#39;s really just an alias for the Document ID.&amp;nbsp; You can call document() on it - as an object of &amp;quot;document&amp;quot; type will cast to the document ID when the rule is called on it.&amp;nbsp; What happens when you try this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>