getNodeChildren request with 'where' option

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2020 05:06 AM
Hi,
I try to use where option with getNodeChildren method but it doesn't work:
const childrenOpts = {
skipCount: 0,
include : ['path', 'properties', 'allowableOperations', 'permissions', 'aspectNames', 'isFavorite'],
includeSource: true,
maxItems: 10,
where: '(name = \'PHOTO\')'
};
this.alfrescoApiService.nodesApi.getNodeChildren(this.mainExterneLibraryNode, childrenOpts)....
But i still have the same error :
- error: {errorKey: "framework.exception.InvalidProperty", statusCode: 400,…}
- briefSummary: "06030038 La propriété 'name' avec la valeur 'PHOTO' n'est pas valide pour la comparaison EQUALS"
- descriptionURL: "https://api-explorer.alfresco.com"
- errorKey: "framework.exception.InvalidProperty"
- stackTrace: "Pour des raisons de sécurité, le traçage de la pile n'est plus affiché, mais la propriété est conservée dans les versions précédente"
- statusCode: 400
I don't find the correct syntax....I have tried with @CM\\:name etc..... nothing works
Thank you for your help
Labels:
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2020 06:51 AM
You probably need to use Search api instead of the Nodes api to get more sophisticated queries.
For the Nodes api, please refer to the API Explorer to get more details on what API supports for the "where"
https://api-explorer.alfresco.com/api-explorer/#!/nodes/listNodeChildren
