What is the best practices to use multiple dev orgs while developing app that will be distributed as Managed Package with Namespace prefix.
The problem: Once Namespace has been created, there is some problems to deploy code to another Dev Org and do all changes there. SF handles namespace in many places automatically, but in some places not.
So far only storing namespace in settings or query it works for APEX and SOQL.
Q: What about Formulas
Q: Is there are any easy way of doing development in multiple dev orgs with namespace in mind?
I have read about Salesforce DX and looks like there we can create Scratch Orgs WITH our namespace. Unfortunately missed the Pilot.
Q: Is it possible to achieve something similar now?
Goal: Do all the development in Dev orgs (without namespace) and deploy changes to Packaging org (with namespace) via IDE. Ideally avoiding of query/check for namespace in every class, manual add/delete to Formulas and sending in to Frontend for Webservice calls.