You need to sign in to do that
Don't have an account?
Michael Dsoza
Enable Quote sObject from Apex Code
Hi,
I am using Quote sObject in Rest API call but in new instance, I have to enable Quote sObject manually by clicking checkbox in Setup -> Quote -> Settings -> Enable Quote.
How can I enable it from Apex Code ??
I tried to find Quote sObject (before enable) in Schema.getGlobalDescribe().values() but there is NO such Quote sObject Type.
Please let me know how can I enable it from Apex Code.
Thanks
Michael
I am using Quote sObject in Rest API call but in new instance, I have to enable Quote sObject manually by clicking checkbox in Setup -> Quote -> Settings -> Enable Quote.
How can I enable it from Apex Code ??
I tried to find Quote sObject (before enable) in Schema.getGlobalDescribe().values() but there is NO such Quote sObject Type.
Please let me know how can I enable it from Apex Code.
Thanks
Michael
Karanraj
Hi Michael - You can't enable/disable directly from the Apex code. The only option other than the manual step is through Metadata API, you can do that. Here is the link http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_quotessettings.htm
Deepak Kumar Shyoran
As explained by Karanraj metadata can only way to achieve that otherwise there is no such way to Enable Quote from Apex Code.
Piyush Kumar 58
You Can enable Quotes like this :-