<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Moving document to a folder depending todays date</title><link>https://community.appian.com/discussions/f/general/30204/moving-document-to-a-folder-depending-todays-date</link><description>Hi all, 
 how can input the documents destination in the move document smart service process node without hard cording the folder name, depending on todays date the document will be sent to a specfic folder. for examle I have a parent folder called Documents</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Moving document to a folder depending todays date</title><link>https://community.appian.com/thread/120078?ContentTypeID=1</link><pubDate>Tue, 03 Oct 2023 15:46:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:935c9afc-7c1f-42af-876c-d50a824f9c5f</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Create a nested loop. In the outer loop seed your Start Year&amp;nbsp; (e.g. 2023) and have it loop through until your End Year. For example you may start in 2023 and end in 2123 (100 years!).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Within each iteration of the Year you&amp;#39;d:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;create the Year folder&lt;/li&gt;
&lt;li&gt;create a loop to create Period 1,2,3 and 4 Folders, all within the current Year folder&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;So your outer loop may look like this:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1696347820548v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;and your inner loop (contained in the sub-process) like this:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1696347876471v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This would run sequentially, and there are other ways to achieve the same outcome faster&amp;nbsp;(you could spawn all 4 Create Period processes concurrently but probably not worth the effort)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Moving document to a folder depending todays date</title><link>https://community.appian.com/thread/120076?ContentTypeID=1</link><pubDate>Tue, 03 Oct 2023 15:24:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dd898f8d-7206-491f-abea-f6ef53b73445</guid><dc:creator>Maria</dc:creator><description>&lt;p&gt;thanks for responding! Can you explain how could I do the&amp;nbsp;&lt;span&gt;&amp;nbsp;one-off utility process model for the subfolders?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Moving document to a folder depending todays date</title><link>https://community.appian.com/thread/120074?ContentTypeID=1</link><pubDate>Tue, 03 Oct 2023 15:00:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eade70e8-caf8-4340-b611-e9a5c23f7b40</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;ol&gt;
&lt;li&gt;Create your folder structure in advance. It sounds like every year will have 4 periods - 1,2,3 and 4. Each covers 3 months (from what can be assumed given the info you&amp;#39;ve provided). There&amp;#39;s no reason to wait to create the subfolders. You could create folders for the next 100 years and be&amp;nbsp;pretty sure that&amp;#39;ll cover the life of your system. You could write a one-off utility process model to do this.&lt;/li&gt;
&lt;li&gt;You can then set up a Decision Rule to return the appropriate folder for the Year/Month combination. You can ease the burden a bit and only have 4 rows per year by a) using the &amp;quot;&lt;span&gt;First - This decision returns outputs for the first match&amp;quot; option, b) matching exactly on the input year, and&amp;nbsp; &amp;lt; 4, &amp;lt; 7, &amp;lt;10, &amp;lt;13 in that order, like this:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1696345022673v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It&amp;#39;d be slow to set up all of the rows you need but once done it&amp;#39;s done.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. The you simply derive the Year and Month from now() and use those values to return the relevant folder as input to your smart service&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>