Currently I am developing in a fresh dev org with no namespace created. I want to push this code to another dev org with namespace already created. How I can push the code with namespace included( Both apex and lightning ). Do I need to change manually or any other ways available?

1 Answer 1


You would push it just like normal. Changeset (not possible if orgs are not connected), IDE, ANT, etc.

Once it is in the org it will take on the namespace.

Are you running into any issues? If so please be more specific and you will get a more specific answer

It all comes down to the basics, pushing code or metadata is no different than creating it manually.

  • I can push the code using ANT tool. But Namespace is not created automatically. So, while packaging the test class throws error for field accessibility
    – Sivakumar
    Aug 30, 2017 at 14:47
  • Not to the code no, but to the field API names yes it will be. The code does not need it as everything in the org with the namespace is "local" despite the namespace. If you are packaging then when you package it will be added to the code
    – Eric
    Aug 30, 2017 at 14:48
  • I tried packaging also (both beta and released), but no namespace is added to the code.
    – Sivakumar
    Aug 30, 2017 at 14:51
  • @scsiva1991 - It is in the package. Your local code will not be updated
    – Eric
    Aug 30, 2017 at 14:52
  • it is in the package means, How can i check the namespace is added since we took managed package
    – Sivakumar
    Aug 30, 2017 at 14:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .