We have a requirement to fetch the complete list of User Licenses available in Company Information page and display it on a custom VF page.
We are using the same approach as mentioned in Getting remaining licenses of customer portal using apex post. However we are not able to get the complete list of licenses in one go. Instead we get the Show 10 More link.
This is probably because the screen scraping is done only on the visible information. If we expand the Company Information Page by clicking on the Always show me Fewer / Show More records per related list, we are able to get the complete list of User Licenses and only in this case we get the complete list in our VF page.
Can anyone please help us in how to retrieve the complete list of User Licenses? Or how can we achieve the hyperlink clicking event from within the Apex.
Thanks in advance.