Get the count of association for a document

cancel
Showing results for 
Search instead for 
Did you mean: 
kawin
Member II

Get the count of association for a document

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?

 

Screenshot from 2021-11-04 12-20-11.jpg

2 Replies
angelborroy
Alfresco Employee

Re: Get the count of association for a document

I guess you can use something like the following from Repository JavaScript tier:

document.associations.length
Hyland Developer Evangelist
kawin
Member II

Re: Get the count of association for a document

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?