Is there a way to determine the number of feature licenses available / remaining? We are particularly interested in Service Cloud. The UserLicense table doesn't seem to give any information on feature licensess.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks for you responses. Sorry I should have been more clear in my question. Khan you answer works great if we want to login to Salesforce and view the licenses manually accross all our instances. However, ideally we were looking for some sort of SOQL query so we could automate pulling this information across instances. Do you happen to know if there is anyway we can automate pulling this information?
Pulling from the UserLicense table doesn't provide any context on feature licenses, so that is not what we are looking for. It will only give you break downs of total licenses / licenses assigned for regular Salesforce licences.
Feature Licenses: A feature licence allows a user to access a feature that is not included in the user licence, such as Marketing or Service Cloud User. A user can be allocated an unlimited number of feature licences. Find a List of All Used Features License in Org Chatter Answers User
Select count() From User where UserPermissionsChatterAnswersUser=true and isActive=true
Flow User
Select count() From User where UserPermissionsInteractionUser=true and isActive=true
Marketing User
Select count() From User where UserPermissionsMarketingUser=true and isActive=true
Service User
Select count() From User where UserPermissionsSupportUser=true and isActive=true
Knowledge User
Select count() From User where UserPermissionsKnowledgeUser=true and isActive=true
Chat User
Select count() From User where UserPermissionsLiveAgentUser=true and isActive=true
Offline User
Select count() From User where UserPermissionsOfflineUser=true and isActive=true
Salesforce CRM Content User
Select count() From User where UserPermissionsSFContentUser=true and isActive=true
We have a UserLicense object in Salesforce, which stores all the license count information.
Link to documentation: UserLicense object.
Query: Apex Code:
Thank You
www.nubeselite.com
Developement | Training | Consulting
Please mark this as solution if your problem resolved.
Greetings to you!
You can view the feature licenses your company has purchased to know what you have available to assign to your users.
1. From Setup, enter Company Information in the Quick Find box, then select Company Information.
2. See the Feature Licenses related list.
https://help.salesforce.com/articleView?id=users_understanding_feature_licenses.htm&type=5 (https://help.salesforce.com/articleView?id=users_understanding_feature_licenses.htm&type=5)
Also, please refer to below links:
https://help.salesforce.com/articleView?id=000337021&type=1&mode=1 (https://help.salesforce.com/articleView?id=000337021&type=1&mode=1)
https://www.simplysfdc.com/2014/02/salesforce-how-to-report-service-cloud.html
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
Thanks for you responses. Sorry I should have been more clear in my question. Khan you answer works great if we want to login to Salesforce and view the licenses manually accross all our instances. However, ideally we were looking for some sort of SOQL query so we could automate pulling this information across instances. Do you happen to know if there is anyway we can automate pulling this information?
Pulling from the UserLicense table doesn't provide any context on feature licenses, so that is not what we are looking for. It will only give you break downs of total licenses / licenses assigned for regular Salesforce licences.
Thanks,
Arun
Find a List of All Used Features License in Org
Chatter Answers User
Flow User
Marketing User
Service User
Knowledge User
Chat User
Offline User
Salesforce CRM Content User
Vote on the answer if it was useful to you.
https://www.codekiat.com/2023/04/how-to-check-available-license-in-salesforce-lightning%20.html