<?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 Content of Document</title><link>https://community.appian.com/discussions/f/best-practices/14670/get-content-of-document</link><description>Hi everyone, 
 
 I have a CSV file that has the following content &amp;quot;This,is,a,test&amp;quot;. I want to able to access the content of the file from an expression rule. How can I do this? 
 
 Thanks in advance</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Get Content of Document</title><link>https://community.appian.com/thread/65728?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2019 16:57:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1d9cc044-d91f-44e6-816f-f331b1919657</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;so have you tried calling the rule on ri!document from within the integration?&amp;nbsp; I&amp;#39;m less familiar with Integrations so I can&amp;#39;t guarantee whether you&amp;#39;re able to use expression rules in the area you&amp;#39;re trying.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Content of Document</title><link>https://community.appian.com/thread/65726?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2019 16:53:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:06b70947-8460-40cd-8b8f-d7ea37d1fc68</guid><dc:creator>josuv0001</dc:creator><description>&lt;p&gt;In this case, I&amp;#39;m using the rule input called &amp;quot;document&amp;quot; inside an integration&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Content of Document</title><link>https://community.appian.com/thread/65725?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2019 16:52:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:57591ba2-6faa-4da4-8d9b-6a1ba9d9de32</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;It completely depends on where you&amp;#39;re calling the expression rule from.&amp;nbsp; For example if you&amp;#39;re in a process model where you have a PV containing the document as its value, named pv!myDocument for example, you would call &amp;quot;rule!EX_example(document: pv!myDocument)&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Content of Document</title><link>https://community.appian.com/thread/65724?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2019 16:49:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f44d47af-f777-49a4-a36c-17b1fb5416b7</guid><dc:creator>josuv0001</dc:creator><description>&lt;p&gt;Hi Mike, thanks a lot for your help.&lt;/p&gt;
&lt;p&gt;I have another question: I defined a rule input called &amp;quot;document&amp;quot; and the type of this rule input is &amp;quot;Document&amp;quot; inside a expression rule called &amp;quot;EX_example&amp;quot;. How can I attribute the value of the rule input when calling the expression rule?&lt;/p&gt;
&lt;p&gt;&amp;quot;rule!EX_example(document: ?)&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Content of Document</title><link>https://community.appian.com/thread/65723?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2019 16:49:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b9af1fbb-0c37-4b15-87f6-2c4b7c68db90</guid><dc:creator>Eliot Gerson</dc:creator><description>&lt;p&gt;Can you elaborate on your use case? The right approach to something like that will depend on the end goal, as well as expected usage. I would encourage you to pay particularly close attention to performance, as there may be considerations at scale or in real-world scenarios that should be&amp;nbsp;thoroughly tested before going live with a solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Content of Document</title><link>https://community.appian.com/thread/65722?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2019 16:40:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e1e668a4-8b84-4ad9-80ac-33d53e67bfa5</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I think you might be able to utilize a plugin called &amp;quot;Text File Reader&amp;quot;, which contains an expression function called &amp;quot;ReadTextFromFile&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>