<?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: From share drive folder count latest .xlsx files on a monthly frequency in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/From-share-drive-folder-count-latest-xlsx-files-on-a-monthly/m-p/64717#M17447</link>
    <description>Hi Suman&lt;BR /&gt;&lt;BR /&gt;Ben's description below will do what you need for getting the path of each folder. Since you say you dont want to hard code this in every stage where you call one of the paths then what you could do is put a multi-calculation stage at the start and set all the folders to output to data items. Then all you need to do in each file stage is call the relevant data item for that file. Also a good practice approach would be to put your root folder, X:\Index\trade\Test\ , in an environment variable that way if the root folder ever does change then you only need to change this in the env variable instead of in the code.&lt;BR /&gt;&lt;BR /&gt;One extra tip, when you are running this process in a schedule you may want to set the root folder without the drive letter as this can cause failures in accessing it when running on a schedule even though it will access it fine in debug mode. So you folder would look like \\Index\trade\Test\&amp;nbsp; instead of X:\Index\trade\Test\ and this will work consistently in debug and scheduler.&lt;BR /&gt;&lt;BR /&gt;Good luck &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Michael ONeil&lt;BR /&gt;Technical Lead developer&lt;BR /&gt;Everis Consultancy&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 11 Feb 2021 09:57:00 GMT</pubDate>
    <dc:creator>michaeloneil</dc:creator>
    <dc:date>2021-02-11T09:57:00Z</dc:date>
    <item>
      <title>From share drive folder count latest .xlsx files on a monthly frequency</title>
      <link>https://community.blueprism.com/t5/Product-Forum/From-share-drive-folder-count-latest-xlsx-files-on-a-monthly/m-p/64715#M17445</link>
      <description>Hi,&amp;nbsp; I am building a Bot, to pick files from different folders in a specified share drive location and provide a count of the unique files monthly.&lt;BR /&gt;In process stage I have created an action using&amp;nbsp; "Utility file managment to Get files" for each folder into a collections. Then I have created&amp;nbsp; another action using "Utility Collection Manipilation to Append rows to collection" which gives me the total count of files.&lt;BR /&gt;The problem I want to resolve is i dont want to hard code the "child folder" name where the files are stored as a new/ multiple&amp;nbsp; folder gets created every month when an action happens.&lt;BR /&gt;Sample folder path&lt;BR /&gt;&lt;STRONG&gt;X:\Index\trade\Test\Strategy\2021\Jan&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;X:\Index\trade\Test\ this path is constant&lt;/STRONG&gt; i have 10 different folders similar " Strategy" which i need to go and get files for year 2021 followed by month and Date&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;suman kothari&lt;BR /&gt;------------------------------</description>
      <pubDate>Wed, 10 Feb 2021 23:08:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/From-share-drive-folder-count-latest-xlsx-files-on-a-monthly/m-p/64715#M17445</guid>
      <dc:creator>sumankothari</dc:creator>
      <dc:date>2021-02-10T23:08:00Z</dc:date>
    </item>
    <item>
      <title>RE: From share drive folder count latest .xlsx files on a monthly frequency</title>
      <link>https://community.blueprism.com/t5/Product-Forum/From-share-drive-folder-count-latest-xlsx-files-on-a-monthly/m-p/64716#M17446</link>
      <description>Hi Suman,&lt;BR /&gt;&lt;BR /&gt;To get the respective month you can use the calculation &lt;STRONG&gt;FormatDate(Today(),"MMM")&lt;/STRONG&gt;. This will give you the 3 letter form of the current month, for example &lt;STRONG&gt;FormatDate(11/02/2021,"MMM") = "Feb"&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;This would require you to run the process during the respective month, to get a previous month you can use the add months function as follows&amp;nbsp;&lt;STRONG&gt;FormatDate(AddMonths(Today(), -1), "MMM")&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;So in full you'd have "&lt;STRONG&gt;X:\Index\trade\Test\Strategy\"&amp;amp;FormatDate(AddMonths(Today(),-1),"yyyy")&amp;amp;"\"&amp;amp;FormatDate(AddMonths(Today(), -1), "MMM")&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;This way you can get the year and month for last month automatically in the folder path.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ben Lyons&lt;BR /&gt;Product Consultant&lt;BR /&gt;Blue Prism&lt;BR /&gt;UK&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Feb 2021 08:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/From-share-drive-folder-count-latest-xlsx-files-on-a-monthly/m-p/64716#M17446</guid>
      <dc:creator>Ben.Lyons1</dc:creator>
      <dc:date>2021-02-11T08:27:00Z</dc:date>
    </item>
    <item>
      <title>RE: From share drive folder count latest .xlsx files on a monthly frequency</title>
      <link>https://community.blueprism.com/t5/Product-Forum/From-share-drive-folder-count-latest-xlsx-files-on-a-monthly/m-p/64717#M17447</link>
      <description>Hi Suman&lt;BR /&gt;&lt;BR /&gt;Ben's description below will do what you need for getting the path of each folder. Since you say you dont want to hard code this in every stage where you call one of the paths then what you could do is put a multi-calculation stage at the start and set all the folders to output to data items. Then all you need to do in each file stage is call the relevant data item for that file. Also a good practice approach would be to put your root folder, X:\Index\trade\Test\ , in an environment variable that way if the root folder ever does change then you only need to change this in the env variable instead of in the code.&lt;BR /&gt;&lt;BR /&gt;One extra tip, when you are running this process in a schedule you may want to set the root folder without the drive letter as this can cause failures in accessing it when running on a schedule even though it will access it fine in debug mode. So you folder would look like \\Index\trade\Test\&amp;nbsp; instead of X:\Index\trade\Test\ and this will work consistently in debug and scheduler.&lt;BR /&gt;&lt;BR /&gt;Good luck &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Michael ONeil&lt;BR /&gt;Technical Lead developer&lt;BR /&gt;Everis Consultancy&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Feb 2021 09:57:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/From-share-drive-folder-count-latest-xlsx-files-on-a-monthly/m-p/64717#M17447</guid>
      <dc:creator>michaeloneil</dc:creator>
      <dc:date>2021-02-11T09:57:00Z</dc:date>
    </item>
    <item>
      <title>RE: From share drive folder count latest .xlsx files on a monthly frequency</title>
      <link>https://community.blueprism.com/t5/Product-Forum/From-share-drive-folder-count-latest-xlsx-files-on-a-monthly/m-p/64718#M17448</link>
      <description>Thanks Ben, I appreciate your detail steps this was very helpful.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;suman kothari&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Feb 2021 19:55:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/From-share-drive-folder-count-latest-xlsx-files-on-a-monthly/m-p/64718#M17448</guid>
      <dc:creator>sumankothari</dc:creator>
      <dc:date>2021-02-11T19:55:00Z</dc:date>
    </item>
    <item>
      <title>RE: From share drive folder count latest .xlsx files on a monthly frequency</title>
      <link>https://community.blueprism.com/t5/Product-Forum/From-share-drive-folder-count-latest-xlsx-files-on-a-monthly/m-p/64719#M17449</link>
      <description>Thanks Michael, for all you guidance. I got some head start will keep you posted once done.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;suman kothari&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Feb 2021 21:43:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/From-share-drive-folder-count-latest-xlsx-files-on-a-monthly/m-p/64719#M17449</guid>
      <dc:creator>sumankothari</dc:creator>
      <dc:date>2021-02-11T21:43:00Z</dc:date>
    </item>
  </channel>
</rss>

