cancel
Showing results for 
Search instead for 
Did you mean: 

Filter favorite files

MartinTichovsky
Champ in-the-making
Champ in-the-making

Hello, i'm using this API 

/alfresco/api/-default-/public/alfresco/versions/1/people/admin/favorites?skipCount=0&maxItems=100&where=(EXISTS(target%2Ffile))&include=propertie

and i need to filter only nodeType='my:customType'. Is there some possibility how can i filter favorite files by nodeType or path? And in this case i mean only using API, not custom logic on FE or BE. Or can i use search API?

Thanks

1 ACCEPTED ANSWER

afaust
Legendary Innovator
Legendary Innovator

The way that favourites are handled in Alfresco and the API available for them means you cannot currently perform such a query using the Public v1 ReST API. The Favorites API operations don't allow for a node type filter, and the search APIs would not be able to access / link to the persistence layer of personalised favorites in order to query for those.

View answer in original post

1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator

The way that favourites are handled in Alfresco and the API available for them means you cannot currently perform such a query using the Public v1 ReST API. The Favorites API operations don't allow for a node type filter, and the search APIs would not be able to access / link to the persistence layer of personalised favorites in order to query for those.