Hi,
I would like to check if a node contains a child with specific name.
I try with
alfrescoApiService.nodesApi.getNodeChildren(node)
but I don't know how to add the name of the child
and I try
that.alfrescoApiService.searchApi.search(filterRequest)
but I don't know how to add the node Id of the parent in filterRequest
Is it possible to reproduce java method getChildByName with ADF ?
Thank's
Solved! Go to Solution.
Hi @anakin98000
NodesAPI doesn't support this - instead you'll need to use the searchAPI - see here.
HTH,
Hi @anakin98000
NodesAPI doesn't support this - instead you'll need to use the searchAPI - see here.
HTH,
You can use SearchService in ADF.
Ex.
const defaultQueryBody: QueryBody = { query: { "query":"PATH:\"app:company_home/st:sites/cm:demo/cm:documentLibrary/cm:Test/cm:folder1//*\" AND cm:name:\"Letter.pdf*\"" } }; this.searchService.searchByQueryBody(defaultQueryBody).subscribe(res=>{ console.log(res); });
Discussions, help and advice about the Alfresco Development Framework.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.