I have built a file manager that organizes and executes various actions on the ContentDocument object and related objects including delete, edit, contribute to library, deliver,and preview. The main table is based on ContentDocument object. Content Document has a child relationship with ContentDistribution which stores the Content Delivery information. Now I have a column displaying the names of the content deliveries via the child ContentDistribution object in comma separated form. This is fine, but ultimately I want to just display the number of records because I have a row action that brings up a pop up displaying all of the current deliveries for that ContentDocument and the ability to add new deliveries in the popup, so displaying the names in the main table is redundant. How can I display the number of child ContentDistribution records in a table of the parent object ContentDocument? Thanks
Question
Count of Child records on ContentDocument Object
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.