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
David Lee 8David Lee 8 

Change NameSpace of a web service

I am developing a web service for a particular client that can only consume namespace
How can I set a custom NameSpace in Apex class?
Best Answer chosen by David Lee 8
NagendraNagendra (Salesforce Developers) 
Hi David,

Description:The developer settings in a Developer Edition organization allow you to create a single managed package, upload that package to AppExchange, allowing other users to install and upgrade the package in their organization. After configuring your developer settings the first time, you can no longer modify them.

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.

Resolution:Once a namespace prefix is created, it cannot be changed or deleted. The workaround is to move all your code to a new Developer Organization where you can setup the desired Namespace Prefix. Please refer to the Product Manager post on the Community Board.

User-added image

For more information on the same please check with the below thread from the forums community.

Please mark this as solved if the information helps so that it gets removed from the unanswered queue which results in helping others how are really in need of it.

Best Regards,