You need to sign in to do that
Don't have an account?
Gabriel Wonders
No such column NamespacePrefix on entity Organization
I'm getting the following error: No such column 'NamespacePrefix' on entity 'Organization'. When trying to save a class with the following SOQL query.
Organization org = [SELECT NamespacePrefix FROM Organization];But I am able to run this query in the Developer Console Query Editor just fine. What's the reasoning behind this?
All Answers
I am able to save it in my DE. What type of Org are you trying it in?
If that is not working out, I recomment have a custom setting value and refer that in Apex. easy way out!!!
HTH,
Prabhan