<?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 get document Id in Text Doc From template smart service?</title><link>https://community.appian.com/discussions/f/general/29459/how-to-get-document-id-in-text-doc-from-template-smart-service</link><description>Hi, 
 I am using Text Doc From Template smart service in my process and it is creating the document as per our requirements but we need document Id in my process. 
 Please help how we get the document Id in the smart service. 
 
 
 We have tried with</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to get document Id in Text Doc From template smart service?</title><link>https://community.appian.com/thread/116773?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 16:27:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e1ac3c7c-0dc1-4c0a-ab6c-5b0317853cc1</guid><dc:creator>sujatas0001</dc:creator><description>&lt;p&gt;Thanks for the reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get document Id in Text Doc From template smart service?</title><link>https://community.appian.com/thread/116736?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 11:42:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a4e2eae4-2d8c-4b7b-abe6-cb23bbe18cb3</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;This is exactly what I tried to explain. In Appian, variables of type &amp;quot;Document&amp;quot; internally store the ID, but are displayed to you with the name.&lt;/p&gt;
&lt;p&gt;What do you need the ID for? Appian will automatically cast that value to an integer whenever needed. And if you think you need the ID displayed on screen, use tointeger().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get document Id in Text Doc From template smart service?</title><link>https://community.appian.com/thread/116734?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 11:27:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:adbf3740-01d5-4346-b76e-6947f1b58e26</guid><dc:creator>sujatas0001</dc:creator><description>&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;We are getting the document name not the Id in the PV.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1690284432810v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get document Id in Text Doc From template smart service?</title><link>https://community.appian.com/thread/116733?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 11:07:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5bd0cf10-33d9-4644-8675-ca10253002f0</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Appian stores the ID in that process variable and displays it to you as the name of the document. But the PV contains the ID.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>