Activity › Forums › Salesforce® Discussions › What is a namespace in Salesforce?
-
What is a namespace in Salesforce?
Posted by Ratnesh on May 27, 2020 at 8:25 AMWhat is a namespace in Salesforce?
Shweta replied 6 years ago 3 Members · 2 Replies -
2 Replies
-
In a packaging context, a namespace prefix is a one to 15-character alphanumeric identifier that distinguishes your package and its contents from packages of other developers on AppExchange. Namespace prefixes are case-insensitive. For example, ABC and abc are not recognized as unique. Your namespace prefix must be globally unique across all Salesforce organizations. It keeps your managed package under your control exclusively.
- [adinserter block='9']
-
Namespace prefixes are used in managed packages to differentiate custom object and field names from those in use by other organizations.
Example: Let’s suppose two companies are making an app and both companies create a custom field on the contact object called Name. Each company has its own unique namespace, which prefixes the names of all of its components. Company A’s name field might actually be called CompanyA__Name__c, which makes it different from company B’s name field.
Log In to reply.