function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AnjaneyluAnjaneylu 

Necessity of introducing Namespace ..

Hi,
here i want to know the about the Namespace.
what is the main reason for introducing the Namespace. ? and what are the uses of namespace ?

please suggest me,

Thanks in advance,
​Anji
Amit Chaudhary 8Amit Chaudhary 8
Please check below post. I hope that will help you
https://help.salesforce.com/apex/HTViewHelpDoc?id=register_namespace_prefix.htm&language=en (https://help.salesforce.com/apex/HTViewHelpDoc?id=register_namespace_prefix.htm&language=en)
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_namespace_prefix.htm
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/namespaces_creating.htm
https://developer.salesforce.com/blogs/developer-relations/2012/08/default-namespaces-in-apex.html

The Salesforce application supports the use of namespace prefixes. Namespace prefixes are used in managed Force.comAppExchange packages to differentiate custom object and field names from those in use by other organizations. After a developer registers a globally unique namespace prefix and registers it with AppExchange registry, external references to custom object and field names in the developer's managed packages take on the following long format:
namespace_prefix__obj_or_field_name__c
NOTE:- Namespace we mostly use for manage package or to create appexchange product. Support in package i want to create the ABC object. May be same object can be available in other org(where i want to install) in that case that package will fail. That is why we use namespace to provide the unique name to object mynamepace_ABC