I have a dev org, in which I have got a namespace prefix. In apex, I want to get this namespace prefix as string. Is there any straight way or I have to describe some object?
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
Query for it, using a class that you know will be there:
Spotted in the Spring `16 release notes under Changed Objects:
It appears it will now be possible to directly query for the NamespacePrefix without needing to have a known Apex Class or Trigger present.