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
ram123ram123 

App License Detecting in Apex - for managed packages

Hi,

 

I posted the following in apex thread, got one response, i want to make sure thats the only option before i make my decision,

 

http://boards.developerforce.com/t5/Apex-Code-Development/App-License-Detecting-in-Apex/m-p/422067

 

I want my app to use Salesforce Content if its enabled or license is available , otherwise i want to use Salesforce Documents, ? its going to be a managed package, whats the best way to detect it ?

 

Thanks

Ram

 

aalbertaalbert

Could you just have a Configuration screen for the admin to specify which they want to use in the app? Let the admin configure that option. 

ram123ram123

Thanks for the answers, not sure why sfdc is not providing it, from packaging prespective it will be useful to check and show error before someone installs it.