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
BradCBradC 

SOAP API Call to get license information

Hello! Does anyone know if there is a SOAP API call you can make to get the number of used/available SFDC "Customer Portal Manager Standard " licenses?

imutsavimutsav

There is a standard object 'UserLicense' which can give you the information you need regarding the available licenses. 'Represents a user license in your organization. A user license entitles a user to specific functionality and determines the profiles and permission sets available to the user.'

Link to the object http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_userlicense.htm.

BradCBradC
Thanks imutsav, unfortunately this doesn't give you the metrics on how many portal seats are available or how many portal seats are used. It just shows licenses. This is what I get when I try to run this query: SELECT LicenseDefinitionKey, MonthlyLoginsEntitlement, MonthlyLoginsUsed, Name FROM UserLicense [2] => SObject Object ( [type] => UserLicense [fields] => stdClass Object ( [LicenseDefinitionKey] => PID_Customer_Portal_Basic [MonthlyLoginsEntitlement] => [MonthlyLoginsUsed] => [Name] => Customer Portal Manager Standard ) Thoughts? Am I doing something wrong? Thanks! Brad
imutsavimutsav

I understand now. There is an idea for this https://success.salesforce.com/ideaView?id=0873000000070Wr

 

 

BradCBradC
Thanks! I voted for it.