Creating a Namespace in Your Organization

Create a namespace for your organization by registering a namespace prefix.

If you’re not creating managed packages for distribution then registering a namespace prefix isn’t required, but it’s a best practice for all but the smallest organizations.

Your namespace prefix must:
  • Begin with a letter
  • Contain one to 15 alphanumeric characters
  • Not contain two consecutive underscores

For example, myNp123 and my_np are valid namespaces, but 123Company and my__np aren’t.

To register a namespace prefix:
  1. From Setup, enter Packages in the Quick Find box. Under Create, select Packages.
    Note

    Note

    This item is only available in Salesforce Classic.

  2. In the Developer Settings panel, click Edit.
    Note

    Note

    This button doesn’t appear if you’ve already configured your developer settings.

  3. Review the selections that are required for configuring developer settings, and then click Continue.
  4. Enter the namespace prefix you want to register.
  5. Click Check Availability to determine if the namespace prefix is already in use.
  6. If the namespace prefix that you entered isn’t available, repeat the previous two steps.
  7. Click Review My Selections.
  8. Click Save.