As of Winter '16 the “My Domain” feature is now mandatory. Si I'm looking to understand what are the best practices for implementing “My Domain” within the construct of a Trialforce organization?

How does it impact a Managed Package distributed within a Trialforce, and that Managed Package contains Lightning Components in it? Will that block usage of the entire app anyhow? Like if users will be blocked to use our app until My Domains is activated by customer taking a trial?

  • Is your app based only on having Lightning components or does it have Visualforce alternatives; as in being what they call "Lightning Ready"?
    – crmprogdev
    Nov 18, 2015 at 13:58
  • Yes the app has Visualforce components and there are plans to make Lightning Components to be included into the app as well. I'm concerned if that will effect our existing VF app in any way?
    – VarunC
    Nov 18, 2015 at 14:26

1 Answer 1


Regardless of whether your managed package has Lightning Components in it or not, if My Domain isn't enabled, the Visualforce you currently have will display.

If your package doesn't have any Lightning Components in it and My Domain gets enabled along with Lightning, your Visualforce will display normally as expected. Salesforce will automatically open a new tab to display your Visualforce unless they're embedded in a Lightning Page in which case a new tab won't be opened. Instead, your Visualforce would need to be wrapped inside the appropriate code.

If the latter applies, see the Trailhead Modules for more on using VisualForce within Lightning pages. I'd also recommend you visit the Partner Community Lightning Readiness Forum as well as their Lightning and Component Forum if you haven't already been there.

I'll add that be default, My Domain isn't enabled in a Trialforce Org. That's something a customer would need to enable themselves during set-up.


I suggest you go through the Trailhead Lightning Components module. I think it will become clear that your components will need to be namespaced with your domain in order for you and others to use them. It's what distinguishes your Lightning components from other components and how they're referenced. All orgs will need to enable My Domain to use the Lightning Experience.

There's also a new module I suggest you go through titled Lightning Experience Development that may help answer some of your additional questions. It includes a section titled "ISVs, Packaging, and AppExchange". I suggest you try to remember that Lightning isn't yet a fully developed platform and that what's published today could change tomorrow. Salesforce itself admits it's something of a beta that's in progress. There's much that's still to come as Salesforce continues to fill in gaps in the Lightning platform that haven't yet been addressed.

  • I've one more query on the same topic, how will it impact the Main Package Dev org? I mean, I've not enabled My Domain in my main Package Dev source org, as I was worried if it will impose any unwanted dependencies when someone installing my package? Considering if I enable My Domain in my package Dev Org, and build a new version (with or without the Lightning Components/Tab), will the Package Throw a Dependency Error on installation that My Domain Need to be enable in order to install my package?
    – VarunC
    Nov 19, 2015 at 9:53
  • See my edit. Your users will need to enable My Domain to use Lightning components, but should be able to install since you'll have the visualforce for pages to make it usable if they don't have Lightning enabled. Again, I highly recommend you visit the Partner Community where these issues are addressed and discussed in more detail.
    – crmprogdev
    Nov 19, 2015 at 13:59
  • Thanks @crmprogdev - I tested it out as well, also looked on this on partner community. My tests suggests that the package continued to work as it is, and after installing new version with Lightning Components did not had any adverse effects on usage of VF components. But on opening Lightning Component Tab we get a warning/error that My Domains is not configured so it cannot load the tab.
    – VarunC
    Nov 23, 2015 at 10:26
  • That's the behavior I'd expect with the lightning component version. Thanks for confirming it.
    – crmprogdev
    Nov 23, 2015 at 13:19
  • I've one more query on this. What happens if I enable "My Domains" in "Trialforce" Org - How will it impact the new Trials generated from the Trialforce Template? I'm unable to find documentation that guides this query ...
    – VarunC
    Apr 28, 2016 at 7:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.