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
rmcculloughrmccullough 

Can't see TotalLicenses or UsedLicenses fields on UserLicense object

I am trying to determine the number of available licenses available. The API documentation for the UserLicense object (http://www.salesforce.com/developer/docs/api/Content/sforce_api_objects_userlicense.htm) lists TotalLicenses and UsedLicenses integer fields that I could use to calculate this. However, when I try to query for these fields in Workbench, they do not appear to exist.

Note: I checked with API version 32.0, which

Am I missing a permisisons setting? Or are these fields not exposed yet?
Best Answer chosen by rmccullough
Hargobind_SinghHargobind_Singh
Hi, 

This field is only available as pilot, which means you would need to contact Salesforce.com to get this enabled for your org. 
 

All Answers

Hargobind_SinghHargobind_Singh
Hi, 

This field is only available as pilot, which means you would need to contact Salesforce.com to get this enabled for your org. 
 
This was selected as the best answer
rmcculloughrmccullough
Yeah, I saw that in the comment just after I posted this. Thanks though.