<?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: Transferring files to Specific folder in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Transferring-files-to-Specific-folder/m-p/63135#M16124</link>
    <description>Hi Barry,&lt;BR /&gt;&lt;BR /&gt;You would build your Destination Path which is used in the Move File Action, using the original file name (dropping the original file type extension). To do this, you will need the data from the Name column and the Extension column of the Collection containing the output from the Get Files Action.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Assuming your Get Files Action stores the output in the Collection named Files&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;The destination &lt;STRONG&gt;base&lt;/STRONG&gt; folder is&amp;nbsp;&lt;STRONG&gt;C:\Test\.....&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Your Expression for the Destination Path input in the Move File Action would be:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;"C:\Test\" &amp;amp; Replace([Files.Name], [Files.Extension],"") &amp;amp; "\" &amp;amp; [Files.Name]&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Obviously, you would need to check that the destination folder exists and create it if not, before attempting to move the file.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Carl Carter&lt;BR /&gt;Developer Program Manager&lt;BR /&gt;Blue Prism&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 27 Mar 2020 15:22:00 GMT</pubDate>
    <dc:creator>Carl__Carter</dc:creator>
    <dc:date>2020-03-27T15:22:00Z</dc:date>
    <item>
      <title>Transferring files to Specific folder</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Transferring-files-to-Specific-folder/m-p/63132#M16121</link>
      <description>Hello, I have a task that is conceptually easy but I seem to be missing some "how-to knowledge" and cannot find a solution from training or on youtube.&lt;BR /&gt;Task: Move .pdf files from one folder to targeted or specific folders.&lt;BR /&gt;&lt;BR /&gt;I have no issues moving all of the files to a folder but that is not my task.&lt;BR /&gt;&lt;BR /&gt;I used an action stage to "get files" and loaded the names of the files to a queue. I was then going to use "Get next item" in the queue and "move files" one by one to the targeted folder. Each file name needs to be matched to a folder with the same name. ( I was told there would be exceptions where they do not match exactly)&lt;BR /&gt;&lt;BR /&gt;I need help with how to tell the bot to grab, for example, "Test1.pdf"&amp;nbsp; and move that file to a subfolder named "Test1"&amp;nbsp; then get the next item and repeat until all files that have a matching folder name are moved.&lt;BR /&gt;&lt;BR /&gt;This seems simple but I am missing something.&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="21042.jpg"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/21187i4D68D98C7530DBB8/image-size/large?v=v2&amp;amp;px=999" role="button" title="21042.jpg" alt="21042.jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Barry Bell&lt;BR /&gt;RPA Manager&lt;BR /&gt;DHGLLP&lt;BR /&gt;America/New_York&lt;BR /&gt;------------------------------</description>
      <pubDate>Fri, 27 Mar 2020 13:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Transferring-files-to-Specific-folder/m-p/63132#M16121</guid>
      <dc:creator>BarryBell</dc:creator>
      <dc:date>2020-03-27T13:44:00Z</dc:date>
    </item>
    <item>
      <title>RE: Transferring files to Specific folder</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Transferring-files-to-Specific-folder/m-p/63133#M16122</link>
      <description>1. Trim out extension from filename as save in temp dataitem.&lt;BR /&gt;2. Do Get Folders on you &lt;STRONG&gt;8886 File Transfer test 2&lt;/STRONG&gt;&lt;BR /&gt;3. Loop over result of 2&lt;BR /&gt;4. Decision temp=Folders.Name&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if yes Move File to Folders.Path&amp;amp;"\"&amp;amp;filename and connect back to step 1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if No Next&lt;BR /&gt;5. To end of loop you can log exception and move back to step 1.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Gopal Bhaire&lt;BR /&gt;Analyst&lt;BR /&gt;Accenture&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Mar 2020 14:39:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Transferring-files-to-Specific-folder/m-p/63133#M16122</guid>
      <dc:creator>GopalBhaire</dc:creator>
      <dc:date>2020-03-27T14:39:00Z</dc:date>
    </item>
    <item>
      <title>RE: Transferring files to Specific folder</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Transferring-files-to-Specific-folder/m-p/63134#M16123</link>
      <description>Gopal, thank you, I feel like a bonehead. So simple.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Barry Bell&lt;BR /&gt;RPA Manager&lt;BR /&gt;DHGLLP&lt;BR /&gt;America/New_York&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Mar 2020 14:45:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Transferring-files-to-Specific-folder/m-p/63134#M16123</guid>
      <dc:creator>BarryBell</dc:creator>
      <dc:date>2020-03-27T14:45:00Z</dc:date>
    </item>
    <item>
      <title>RE: Transferring files to Specific folder</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Transferring-files-to-Specific-folder/m-p/63135#M16124</link>
      <description>Hi Barry,&lt;BR /&gt;&lt;BR /&gt;You would build your Destination Path which is used in the Move File Action, using the original file name (dropping the original file type extension). To do this, you will need the data from the Name column and the Extension column of the Collection containing the output from the Get Files Action.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Assuming your Get Files Action stores the output in the Collection named Files&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;The destination &lt;STRONG&gt;base&lt;/STRONG&gt; folder is&amp;nbsp;&lt;STRONG&gt;C:\Test\.....&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Your Expression for the Destination Path input in the Move File Action would be:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;"C:\Test\" &amp;amp; Replace([Files.Name], [Files.Extension],"") &amp;amp; "\" &amp;amp; [Files.Name]&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Obviously, you would need to check that the destination folder exists and create it if not, before attempting to move the file.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Carl Carter&lt;BR /&gt;Developer Program Manager&lt;BR /&gt;Blue Prism&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Mar 2020 15:22:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Transferring-files-to-Specific-folder/m-p/63135#M16124</guid>
      <dc:creator>Carl__Carter</dc:creator>
      <dc:date>2020-03-27T15:22:00Z</dc:date>
    </item>
  </channel>
</rss>

