cancel
Showing results for 
Search instead for 
Did you mean: 

Smart folder with created date

pschuett
Champ in-the-making
Champ in-the-making

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

2 REPLIES 2

fedorow
Elite Collaborator
Elite Collaborator

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/

pschuett
Champ in-the-making
Champ in-the-making

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