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
raSFUserraSFUser 

Check if Quotes are enabled

I am creating a package that can altomaticly create a quote for an opportunity and populate it with all manner of infomation (if chosen from an admin screen).

the issue is that this package will be deployed to multiple SF environments some with Quotes enabled some where Quotes are not, i dont want the package to fail on install.

Is there a was to check if quotes are enabled or refrence the Quote the apex in a manner that will not cause the package to fail if quotes are not enabled?
ShirishaShirisha (Salesforce Developers) 
Hi,

Greetings!

I don't think there is any way to automatically enable the Quote in the Org.So,I would suggest you to inform your customers to enable the Quotes first before installing the managed packages.

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri