<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Getting the latest source in Qlik Automate</title>
    <link>https://community.qlik.com/t5/Qlik-Automate/Getting-the-latest-source/m-p/2422110#M3189</link>
    <description>&lt;P&gt;Iterate over all of the files matching for example the pattern "FileName *.*.*.xlsx" using a &lt;A href="https://help.qlik.com/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptControlStatements/For%20Each.htm" target="_self"&gt;for-loop with FileList()&lt;/A&gt;, and then check each file's name for the latest date, or use &lt;A href="https://help.qlik.com/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/FileFunctions/FileTime.htm" target="_self"&gt;FileTime()&lt;/A&gt;. Store the filename that you need (i.e. the filename of the latest file) into a varable, and use the contents of that variable when loading, e.g FROM [FilePathe/File/$(filenameOfLatestFile)].&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2024 08:41:55 GMT</pubDate>
    <dc:creator>henrikalmen</dc:creator>
    <dc:date>2024-02-22T08:41:55Z</dc:date>
    <item>
      <title>Getting the latest source</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Getting-the-latest-source/m-p/2421894#M3178</link>
      <description>&lt;P&gt;Hi, I'm not sure if this board is the right place to put a question like this, but I was wondering if there was a way to automate getting the latest version of a file from my source?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;Table_Name:&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;LOAD&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Field1,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;Field2&lt;/DIV&gt;
&lt;DIV&gt;FROM [FilePath/File/FileName 2.12.24.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is [Table Name]);&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instance, in the FROM section of a load above, how would I go about automating grabbing the latest version of the FileName file?&lt;BR /&gt;&lt;BR /&gt;The naming convention will always be FileNamm MM.DD.YY.xlsx&lt;BR /&gt;&lt;BR /&gt;How could I set it up to automatically grab the file that will be added to the source on 2.22.2024 without having to change the code weekly to reflect the new file?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 17:57:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Getting-the-latest-source/m-p/2421894#M3178</guid>
      <dc:creator>GraysonStack</dc:creator>
      <dc:date>2024-02-21T17:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the latest source</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Getting-the-latest-source/m-p/2422110#M3189</link>
      <description>&lt;P&gt;Iterate over all of the files matching for example the pattern "FileName *.*.*.xlsx" using a &lt;A href="https://help.qlik.com/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptControlStatements/For%20Each.htm" target="_self"&gt;for-loop with FileList()&lt;/A&gt;, and then check each file's name for the latest date, or use &lt;A href="https://help.qlik.com/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/FileFunctions/FileTime.htm" target="_self"&gt;FileTime()&lt;/A&gt;. Store the filename that you need (i.e. the filename of the latest file) into a varable, and use the contents of that variable when loading, e.g FROM [FilePathe/File/$(filenameOfLatestFile)].&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 08:41:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Getting-the-latest-source/m-p/2422110#M3189</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2024-02-22T08:41:55Z</dc:date>
    </item>
  </channel>
</rss>

