As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hallo,
I want to show the documents of one type in year-folders.
invoices - 2020, 2021, 2022
Is this possible to build this with smart folders?
Cheers
Peter Schütt
Yes. Smart folders base on full text search. Create your search request for the folder and you will get results in proper folder.
For example:
{ "id : "1", "name":"Invoices", "nodes":[ { "name":"2023", ... "search":{ "language": "fts-alfresco", "query": "TYPE:'<your-index>:<invoice>' AND created:['2023-01-01' to '2023-12-31']" } }, { "name":"2024", ... } ] }
Here is the documentation:
https://docs.alfresco.com/content-services/7.0/config/smart-folders/
thanks for Your answer.
Is it possible to generate the year folder in a generic way?
e.g. (Pseudo-Code, not real)
{ "id : "1", "name":"Invoices", "nodes":[ { "name":"<year_of_creation>", ... "search":{ "language": "fts-alfresco", "query": "TYPE:'<your-index>:<invoice>' AND created in <year_of_creation>" } } ] }
I hope, my idea is clear.
Is this possible?