To be more specific, I am talking about the 'new' notes introduced with the Summer '15 release link

Would it be enough to verify if ContentNote is available by using:

Boolean isNotesEnabled = Schema.getGlobalDescribe().containsKey('ContentNote')


1 Answer 1


Yes, or you can save the cost of a global describe using Type.forName:

Boolean isNewNotesEnabled = Type.forName('Schema.ContentNote') != null;

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .