<?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: How to Create Year Month and date wise folder in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/How-to-Create-Year-Month-and-date-wise-folder/m-p/70116#M22721</link>
    <description>&lt;P&gt;Hi Ankit,&lt;/P&gt;
&lt;P&gt;In object 'Utility - File Management', you'll find an action 'Create Directory'. That action will create a new folder with your chosen name.&lt;/P&gt;
&lt;P&gt;How's that 'Foundation' course coming along?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Happy coding!&lt;BR /&gt;---------------&lt;BR /&gt;Paul&lt;BR /&gt;Sweden&lt;BR /&gt;&lt;BR /&gt;(By all means, do not mark this as the 'Best answer'! )&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 07 Dec 2023 13:39:00 GMT</pubDate>
    <dc:creator>PvD_SE</dc:creator>
    <dc:date>2023-12-07T13:39:00Z</dc:date>
    <item>
      <title>How to Create Year Month and date wise folder</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-Create-Year-Month-and-date-wise-folder/m-p/70115#M22720</link>
      <description>&lt;P&gt;How to Create Year Month and date wise folder&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ankit Shukla&lt;BR /&gt;RPA Developer&lt;BR /&gt;Arvius Software Pvt Ltd.&lt;BR /&gt;Noida&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Dec 2023 10:41:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-Create-Year-Month-and-date-wise-folder/m-p/70115#M22720</guid>
      <dc:creator>AnkitShukla11</dc:creator>
      <dc:date>2023-12-07T10:41:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to Create Year Month and date wise folder</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-Create-Year-Month-and-date-wise-folder/m-p/70116#M22721</link>
      <description>&lt;P&gt;Hi Ankit,&lt;/P&gt;
&lt;P&gt;In object 'Utility - File Management', you'll find an action 'Create Directory'. That action will create a new folder with your chosen name.&lt;/P&gt;
&lt;P&gt;How's that 'Foundation' course coming along?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Happy coding!&lt;BR /&gt;---------------&lt;BR /&gt;Paul&lt;BR /&gt;Sweden&lt;BR /&gt;&lt;BR /&gt;(By all means, do not mark this as the 'Best answer'! )&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Dec 2023 13:39:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-Create-Year-Month-and-date-wise-folder/m-p/70116#M22721</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2023-12-07T13:39:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to Create Year Month and date wise folder</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-Create-Year-Month-and-date-wise-folder/m-p/70117#M22722</link>
      <description>&lt;P&gt;Hi Ankit,&lt;/P&gt;
&lt;P&gt;Thank you for being a SS&amp;amp;C Blue Prism customer and for using Blue Prism.&lt;/P&gt;
&lt;P&gt;I think I can help you here.&lt;/P&gt;
&lt;P&gt;Using the File Management VBO and the Create Directory action, you can create a folder very easily, all you have to do is provide the path to the folder you wish to create. It will throw an exception if you try to create a directory that already exists.&lt;/P&gt;
&lt;P&gt;The potentially more complex part comes in creating the folder path, or more specifically the folder name in terms of a date.&lt;/P&gt;
&lt;P&gt;If you have a date value, then you can build the folder name as follows.&lt;/P&gt;
&lt;P&gt;Create a new action in a VBO.&lt;/P&gt;
&lt;P&gt;Create a Date data item and for ease call it DateIn.&lt;/P&gt;
&lt;P&gt;Create a Text data item and for ease call it Date Out.&lt;/P&gt;
&lt;P&gt;In your objects action, create a calculation stage that accepts a date.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the expression area type the following: FormatDateTime([DateIn], "yyyy-MM-dd")&lt;/P&gt;
&lt;P&gt;Set the Store Result In drop down to the text item you created, Date Out.&lt;/P&gt;
&lt;P&gt;Now, place a valid date value in the Date In data item, if you have not already done so.&lt;/P&gt;
&lt;P&gt;Connect the stages and if everything is correct you will see the YMD value in the Date Out, all you need to do from here is pass that out of this action and into an action using the Create Directory action of the File Management VBO.&lt;/P&gt;
&lt;P&gt;For future reference, I will see about adding this functionality to the strings VBO as it may be of use elsewhere.&lt;/P&gt;
&lt;P&gt;Come back to me if you need more help.&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;STYLE&gt;&lt;/STYLE&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Geoff Hirst&lt;BR /&gt;Senior DX Engineer - Digital Exchange - EMEA&lt;BR /&gt;SS&amp;amp;C Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Dec 2023 14:11:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-Create-Year-Month-and-date-wise-folder/m-p/70117#M22722</guid>
      <dc:creator>GeoffHirst</dc:creator>
      <dc:date>2023-12-07T14:11:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to Create Year Month and date wise folder</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-Create-Year-Month-and-date-wise-folder/m-p/70118#M22723</link>
      <description>&lt;P&gt;&lt;A class="user-content-mention" data-sign="@" data-contactkey="dc41ebf4-9dc9-4852-a3f9-018bfbbe7f74" data-tag-text="@Ankit Shukla" href="https://community.blueprism.com/network/profile?UserKey=dc41ebf4-9dc9-4852-a3f9-018bfbbe7f74" data-itemmentionkey="14919408-d9ed-4ae3-bda0-01c715eefc27"&gt;@Ankit Shukla&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You could always use a little known feature of the underlying .Net Format() method of Blue Prism Date Formatting functions. You can use pretty well any characters as long as you enclose them in double quotes and use backslashes that are escaped with another back slash. So for instance:&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;FormatDateTime(Today(), """Z:\\Reports\\Year-""yyyy""\\Month-""MM, MMM""\\Day-""dd, dddd")&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Will produce a result of "Z:\Reports\Year-2023\Month-12, Dec\Day-07, Thursday".&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden; padding-left: 40px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="21743.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/21886i4739C305FA2200EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="21743.png" alt="21743.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;Using the "Create Directory" action in Blue Prism's "Utility - File Management" VBO, any intervening folders will be created if they do not exist. Also, you can set the "Error If Already Exists" parameter to False (or blank as False is the default) and the action will not throw an exception if the folders already exist.&lt;/DIV&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;&amp;nbsp;
&lt;DIV class="media" style="overflow: hidden;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="21744.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/21887i197071677F6411D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="21744.png" alt="21744.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Micheal Charron&lt;BR /&gt;Senior Manager&lt;BR /&gt;RBC&lt;BR /&gt;America/Toronto&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 15:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-Create-Year-Month-and-date-wise-folder/m-p/70118#M22723</guid>
      <dc:creator>MichealCharron</dc:creator>
      <dc:date>2023-12-07T15:44:00Z</dc:date>
    </item>
  </channel>
</rss>

