How to get a specific Salesforce domain?
With the recent Salesforce transition to Enhanced Domains the question of how to reliably get a specific Salesforce domain (e.g. for Lightning or Visualforce) is getting raised more often than before. In this post I will shortly present a very helpful class that was released in Spring ‘22 that will be the go-to answer to this question in the future.