<?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>Set a rule what files to be fetched in Receive File Over SFTP</title><link>https://community.appian.com/discussions/f/plug-ins/21725/set-a-rule-what-files-to-be-fetched-in-receive-file-over-sftp</link><description>Hello team, 
 I was wondering if receiving files from SFTP can fetch files by batch or just one file at a time. 
 Also, can we specify what files to be fetched only based on the file date when it was uploaded to the server? 
 Thank you.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Set a rule what files to be fetched in Receive File Over SFTP</title><link>https://community.appian.com/thread/85395?ContentTypeID=1</link><pubDate>Thu, 02 Sep 2021 13:38:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:431515b4-4516-45d7-ba15-86a3b96295ee</guid><dc:creator>Sarah B.</dc:creator><description>&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;I tried&amp;nbsp;&lt;span&gt;&amp;nbsp;Get Remote Directory Contents and was able to set the files in a process variable. However my problem is I am not able to index it. I tried creating a script task first with index(pv!files, 1, null) just to get for example the 1st file in the list then my target is fileToFetch.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However my problem is I am not able to put any value in fileToFetch process variable. May I know if the results from&amp;nbsp;Get Remote Directory Contents is considered list of string? Thank you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set a rule what files to be fetched in Receive File Over SFTP</title><link>https://community.appian.com/thread/84998?ContentTypeID=1</link><pubDate>Thu, 26 Aug 2021 08:47:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a22a2ba2-4c03-4720-8c80-87d8ed7352ec</guid><dc:creator>gayathris876948</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;nbsp;I can see that smart service allow you to specify the document&amp;nbsp;name to fetch. If you don&amp;#39;t&amp;nbsp;know document name, you can try using the Get Remote Directory Contents first (to get the list of available files) to see if the file exists first before attempting to download&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/19/pastedimage1629967686548v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>