06-28-2024 11:02 AM
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
07-12-2024 07:55 AM
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/
07-23-2024 08:35 AM
Hallo,
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?
Cheers
Peter Schütt
Explore our Alfresco products with the links below. Use labels to filter content by product module.