You need to sign in to do that
Don't have an account?
raj kiran
soql for total license used in SFDC
Hi All,
I am looking for soql which could fetch me all the license used for all inactive and active users in one shot. similar to displaying company license information in native SFDC environment.
I am working on displaying the license information on VF such that i can have my own custom activation and deactivation of users in organization.
Any light on this is greatly appreciated.
I am looking for soql which could fetch me all the license used for all inactive and active users in one shot. similar to displaying company license information in native SFDC environment.
I am working on displaying the license information on VF such that i can have my own custom activation and deactivation of users in organization.
Any light on this is greatly appreciated.
You might have to do this the old-fashioned way.
query the User object and group by User License!
--
Regards,
Grazitti Team
Web: www.grazitti.com
Email: sfdc@grazitti.com
select profile.UserLicense.name from user group by profile.UserLicense.name
Thanks for your quick reply. Your information was quite useful.
however i am looking for bit more elabartive soql which could fetch me all the license used in an organization with count like how it gets dispalyed in company inormation link in SFDC.
Please let me know how can u process ahead.!
https://www.salesforce.com/developer/docs/api/Content/sforce_api_objects_userlicense.htm
Yes. count of licenses used and unused.
TotalLicenses,UsedLicenses fields are available on userobject yet they are not available for our developement purposes. NOt even read mode has been enabled on them.
Wondering if there is any workaround for it.
Thanks for your reply.
I am aware of this object acess, TotalLicenses,UsedLicenses are restricted even for view in SFDC environment for developers.