Smart folder with created date

cancel
Showing results for 
Search instead for 
Did you mean: 
pschuett
Customer

Smart folder with created date

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

1 Reply
fedorow
Senior Member II

Re: Smart folder with created date

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/