<?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: Select 2 most recent files for ID in a folder and then copy the files to a new folder in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-2-most-recent-files-for-ID-in-a-folder-and-then-copy-the/m-p/1234226#M306554</link>
    <description>&lt;P&gt;AIFFDB-100000000-A00001600-V00002700-00000000-AIF-20240126165425_20240129113335675.zip&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AIFFBH-100000000-A00002000-V00006400-00000000-AIF-20240127042128_20240129103427384.zip&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the file naming convention.&lt;/P&gt;&lt;P&gt;Most recent is based on the column of the folder 'Creation Time'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jan 2024 11:29:47 GMT</pubDate>
    <dc:creator>guido_vianson</dc:creator>
    <dc:date>2024-01-29T11:29:47Z</dc:date>
    <item>
      <title>Select 2 most recent files for ID in a folder and then copy the files to a new folder</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-2-most-recent-files-for-ID-in-a-folder-and-then-copy-the/m-p/1234206#M306542</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need to collect the files that I am receiving in a folder called 'Replies'. I have 3 type of possible files:&lt;/P&gt;&lt;P&gt;AIFFBR&lt;/P&gt;&lt;P&gt;AIFFDB&lt;/P&gt;&lt;P&gt;AIFFBH&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are submission receipts. This means that I am always getting AIFFBR% file, same for AIFFDB%. Then, if AIFFDB% is fine, I am also getting a AIFFBH% as confirmation.&lt;/P&gt;&lt;P&gt;They are .zip and .txt extension with same naming convention. I only need the .zip files and not the .txt.&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I seek for a specific file by filtering on the ID contained in the File Name and on the Creation Time column.&lt;/P&gt;&lt;P&gt;AIFFDB-100000000-A00001600-V00002700-00000000-AIF-20240126165425_20240129113335675.zip&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AIFFBH-100000000-A00002000-V00006400-00000000-AIF-20240127042128_20240129103427384.zip&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the file naming convention.&lt;/P&gt;&lt;P&gt;Most recent is based on the column of the folder 'Creation Time'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I am filtering for V000001-0000000 and a specific date range I might get multiple files.&lt;/P&gt;&lt;P&gt;This depends on how many times the submission was done.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I only want to select the most recent AIFFDB and AIFFBH files for each ID I am looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result should then be copied to a new folder in the download folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you please help me to build the same?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I am importing to Alteryx using a Directory.&lt;/P&gt;&lt;P&gt;Then I am filtering using 'contains' in File Name but I need to find a better way as I might need to search 40 different ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The challenge is how to select the 2 most recent file for ID and then copy the same to a new folder?&lt;/P&gt;&lt;P&gt;I tried to understand how to use a CMD but not very clear for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank for your help&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 11:30:12 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-2-most-recent-files-for-ID-in-a-folder-and-then-copy-the/m-p/1234206#M306542</guid>
      <dc:creator>guido_vianson</dc:creator>
      <dc:date>2024-01-29T11:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Select 2 most recent files for ID in a folder and then copy the files to a new folder</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-2-most-recent-files-for-ID-in-a-folder-and-then-copy-the/m-p/1234223#M306551</link>
      <description>&lt;P&gt;Can you post a sample of actual file names in table format or text format in this forum?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you said "&lt;SPAN&gt;I only want to select the most recent AIFFDB and AIFFBH files&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is "the most recent" determined by file creation date?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 11:26:48 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-2-most-recent-files-for-ID-in-a-folder-and-then-copy-the/m-p/1234223#M306551</guid>
      <dc:creator>ChrisTX</dc:creator>
      <dc:date>2024-01-29T11:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Select 2 most recent files for ID in a folder and then copy the files to a new folder</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-2-most-recent-files-for-ID-in-a-folder-and-then-copy-the/m-p/1234226#M306554</link>
      <description>&lt;P&gt;AIFFDB-100000000-A00001600-V00002700-00000000-AIF-20240126165425_20240129113335675.zip&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AIFFBH-100000000-A00002000-V00006400-00000000-AIF-20240127042128_20240129103427384.zip&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the file naming convention.&lt;/P&gt;&lt;P&gt;Most recent is based on the column of the folder 'Creation Time'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 11:29:47 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-2-most-recent-files-for-ID-in-a-folder-and-then-copy-the/m-p/1234226#M306554</guid>
      <dc:creator>guido_vianson</dc:creator>
      <dc:date>2024-01-29T11:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Select 2 most recent files for ID in a folder and then copy the files to a new folder</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-2-most-recent-files-for-ID-in-a-folder-and-then-copy-the/m-p/1234227#M306555</link>
      <description>&lt;P&gt;If you have the Directory tool already, it’ll be a matter of parsing out the relevant information from the file name to give yourself a column with each “group”, sorting the data on Creation Date like&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/44249"&gt;@ChrisTX&lt;/a&gt;&amp;nbsp;is mentioning, and Sampling the First N Records with N=1 and grouping by that group!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 11:31:40 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-2-most-recent-files-for-ID-in-a-folder-and-then-copy-the/m-p/1234227#M306555</guid>
      <dc:creator>alexnajm</dc:creator>
      <dc:date>2024-01-29T11:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select 2 most recent files for ID in a folder and then copy the files to a new folder</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-2-most-recent-files-for-ID-in-a-folder-and-then-copy-the/m-p/1234238#M306559</link>
      <description>&lt;P&gt;See if the attached workflow points you in the right direction&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-01-29 055810.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/339394i2D9BE51292907BAD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-01-29 055810.png" alt="Screenshot 2024-01-29 055810.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 11:59:21 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-2-most-recent-files-for-ID-in-a-folder-and-then-copy-the/m-p/1234238#M306559</guid>
      <dc:creator>ChrisTX</dc:creator>
      <dc:date>2024-01-29T11:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select 2 most recent files for ID in a folder and then copy the files to a new folder</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-2-most-recent-files-for-ID-in-a-folder-and-then-copy-the/m-p/1234239#M306560</link>
      <description>&lt;P&gt;Nice&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/44249"&gt;@ChrisTX&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 12:00:01 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-2-most-recent-files-for-ID-in-a-folder-and-then-copy-the/m-p/1234239#M306560</guid>
      <dc:creator>alexnajm</dc:creator>
      <dc:date>2024-01-29T12:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select 2 most recent files for ID in a folder and then copy the files to a new folder</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-2-most-recent-files-for-ID-in-a-folder-and-then-copy-the/m-p/1234336#M306601</link>
      <description>&lt;P&gt;@ChrisTX&amp;nbsp;yes it helped thanks!!. I changed some fields and added a formula to concatenate 2 fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you also know how to copy the result in a new folder?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 14:33:01 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-2-most-recent-files-for-ID-in-a-folder-and-then-copy-the/m-p/1234336#M306601</guid>
      <dc:creator>guido_vianson</dc:creator>
      <dc:date>2024-01-29T14:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select 2 most recent files for ID in a folder and then copy the files to a new folder</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-2-most-recent-files-for-ID-in-a-folder-and-then-copy-the/m-p/1234475#M306662</link>
      <description>&lt;P&gt;I don't understand the question "&lt;SPAN&gt;how to copy the result in a new folder&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you want to create a new folder then save an output file in that folder?&lt;/P&gt;&lt;P&gt;What's an example format for the new folder name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To create a folder: you will likely need to create and run a BAT file using the Run Command tool under the Developer category.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 17:02:08 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-2-most-recent-files-for-ID-in-a-folder-and-then-copy-the/m-p/1234475#M306662</guid>
      <dc:creator>ChrisTX</dc:creator>
      <dc:date>2024-01-29T17:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select 2 most recent files for ID in a folder and then copy the files to a new folder</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-2-most-recent-files-for-ID-in-a-folder-and-then-copy-the/m-p/1234844#M306770</link>
      <description>&lt;P&gt;Yes exactly. I would like the files to be copied to a a new folder (no name convention needed) in the Downloads folder&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 10:44:30 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-2-most-recent-files-for-ID-in-a-folder-and-then-copy-the/m-p/1234844#M306770</guid>
      <dc:creator>guido_vianson</dc:creator>
      <dc:date>2024-01-30T10:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Select 2 most recent files for ID in a folder and then copy the files to a new folder</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-2-most-recent-files-for-ID-in-a-folder-and-then-copy-the/m-p/1234858#M306773</link>
      <description>&lt;P&gt;Try this post:&amp;nbsp;&lt;A href="https://community.alteryx.com/t5/Alteryx-Designer-Discussions/How-to-copy-a-file-from-one-folder-to-another/td-p/91171" target="_blank"&gt;https://community.alteryx.com/t5/Alteryx-Designer-Discussions/How-to-copy-a-file-from-one-folder-to-another/td-p/91171&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 11:29:46 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-2-most-recent-files-for-ID-in-a-folder-and-then-copy-the/m-p/1234858#M306773</guid>
      <dc:creator>ChrisTX</dc:creator>
      <dc:date>2024-01-30T11:29:46Z</dc:date>
    </item>
  </channel>
</rss>

