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')



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

Boolean isNewNotesEnabled = Type.forName('Schema.ContentNote') != null;
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.