Get the count of association for a document

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2021 03:13 AM
I need to get only count of association for a document which is highlighted in the below image.
Is there a way to get only count using Java Webscript?
What class we need to implement to achieve this?
Labels:
- Labels:
-
Alfresco Content Services
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2021 04:30 AM
I guess you can use something like the following from Repository JavaScript tier:
document.associations.length
Hyland Developer Evangelist

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2021 06:40 AM
The solution you provided is by using JavaScript.
I need to find the count using Java. Is there a way to achieve this using Java?
