function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
cml26sepcml26sep 

How to get total no. of license count in APEX?

I have a requriement where i need to generate a alert when certain amount of user licenses are left.

Does anyone know how to query user liceneses in APEX?

 

Best Answer chosen by Admin (Salesforce Developers) 
Navatar_DbSupNavatar_DbSup

Hi,

 

You can’t make query on Company Profile, so you have take the license info manully by checking the Company info.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.