Count of Associations for an asset

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2021 07:56 AM
Hello folks,
I want to count the number of Associations associated with an asset/folder. I dont need the whole records, I need just count from Alfresco.
It will be great if we have an option to fetch the associations based on pagination.
Please refere the below screenshot for the associations what I need.
Thanks in advance,
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2021 02:46 AM
I dont think any default api available.
You can create custom webscript/api which count association of given node/list and return.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2021 07:14 AM
Thanks for the suggestion,
Can you please provide some example, how to do this?
That will be a great healp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2021 08:01 AM
You can learn developing Web Scripts at https://docs.alfresco.com/content-services/latest/develop/repo-ext-points/web-scripts/
