10-21-2020 11:17 AM
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
11-27-2020 11:23 AM
Hi @anakin98000
NodesAPI doesn't support this - instead you'll need to use the searchAPI - see here.
HTH,
11-27-2020 11:23 AM
Hi @anakin98000
NodesAPI doesn't support this - instead you'll need to use the searchAPI - see here.
HTH,
12-01-2020 07:40 AM
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); });
Explore our Alfresco products with the links below. Use labels to filter content by product module.