It appears that Quote is a SF SObject, yet the following code renders the following error:
[SELECT Id From Quote]
sObject type 'Quote' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.
The following code throws an NPE on the first line:
SObjectType objType = Schema.getGlobalDescribe().get('Quote');
Map<String, Schema.SObjectField> objectFields = objType.getDescribe().fields.getMap();
So what is a Quote? How do a get a list of them?
Thanks for your help 😀
Best Answer
It may seem simple and I'm sorry if I'm wrong, but I suspect you haven't enabled quotes for your org. It is not enabled by default, you have to manually do this step to use quotes.
Setup -> Customize -> Quotes -> Settings -> Enable Quotes