<?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 Dynamically generate smart folders in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/dynamically-generate-smart-folders/m-p/295543#M248673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have been able to use Smart Folders to filter by type, status, content type and so on, that's okay. However we may face the following scenario:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The company has a type of folder named "Case Folder". This is a subtype of cm:folder and we added the "Case ID" property. The also have an aspect named "AssociatedToCase" which has a property named "relatedCase".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you may see, the idea is just to related content files across the repository to cases, using their Case ID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, we want to create a Smart Folder named "Content by Case ID", so that it will display a list of folders for each available "Case ID", and inside each case folder there, display all content which has its "relatedCase" property set to the case id .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This way, we can group all content related to a particular Case ID into a single folder. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The smart folder structure would look like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;\Cases by ID&lt;BR /&gt;&amp;nbsp; \Case 1 (smart folder)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; \Physical file with relateCase set to "Case 1"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; \Physical file with relateCase set to "Case 1"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; \Physical file with relateCase set to "Case 1"&lt;BR /&gt;&amp;nbsp; \Case 2 (smart folder)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; \Physical file with relateCase set to "Case 2"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; \Physical file with relateCase set to "Case 2"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; \Physical file with relateCase set to "Case 2"&lt;BR /&gt;&amp;nbsp; \Case 3 (smart folder)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; \Physical file with relateCase set to "Case 3"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; \Physical file with relateCase set to "Case 3"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; \Physical file with relateCase set to "Case 3"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; \Case N (smart folder)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; \Physical file with relateCase set to "Case N"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; \Physical file with relateCase set to "Case N"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; \Physical file with relateCase set to "Case N"&lt;BR /&gt;&amp;nbsp; \ …&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible, which would be the recommended approach?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 May 2016 05:43:58 GMT</pubDate>
    <dc:creator>jonvargas</dc:creator>
    <dc:date>2016-05-02T05:43:58Z</dc:date>
    <item>
      <title>Dynamically generate smart folders</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamically-generate-smart-folders/m-p/295543#M248673</link>
      <description>Hello.We have been able to use Smart Folders to filter by type, status, content type and so on, that's okay. However we may face the following scenario:The company has a type of folder named "Case Folder". This is a subtype of cm:folder and we added the "Case ID" property. The also have an aspect na</description>
      <pubDate>Mon, 02 May 2016 05:43:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamically-generate-smart-folders/m-p/295543#M248673</guid>
      <dc:creator>jonvargas</dc:creator>
      <dc:date>2016-05-02T05:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically generate smart folders</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dynamically-generate-smart-folders/m-p/295544#M248674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could you implement this through rules?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. When a file is created, run a javascript that would check the "relatedCase" value and, if the related "Smart Folder" did not exist, create it, then copy the file into that folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. When a file is updated, run a javascript that would check the "relatedCase" value, then copy the file into the related "Smart Folder" (or, if the "relatedCase" value has changed, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; move the copy into the correct folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a very high level description but I think you get it to work this way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another option might be to use dynamic constraints.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 18:24:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dynamically-generate-smart-folders/m-p/295544#M248674</guid>
      <dc:creator>art99trash</dc:creator>
      <dc:date>2016-05-02T18:24:08Z</dc:date>
    </item>
  </channel>
</rss>

