Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Store links/URLs in Custom Settings - Custom Settings are accessible in flows, classic email templates and formula fields. Custom setting values are data rather than metadata, like normal object records.

  2. Store links/URLs in Custom Labels - Custom Labels are accessible in flows, classic email templates and formula fields. Custom label values are part of metadata and so when editing values, it is a metadata change.

  3. Dynamically determine using Apex - this is a complicated approach and would entail converting affected email templates to Visualforce Template, and additional invokable controller class in case of Lightning Flows.

  4. Dynamically determine using formula - The only known approach is by parsing the $Api partner URL. But this function does not work in email templates.

Code Block
SUBSTITUTE(LEFT($Api.Partner_Server_URL_570, FIND( '/services', $Api.Partner_Server_URL_570)), '.my.salesforce.com', '.lightning.force.com')

NOTE: Rows that are highlighted with PEACH color means it is affected by the Enhanced Domain.

...