Skip to content

Centricity Force

A tech enthusiast, focused in Salesforce, Devops, AI, Data

  • Home
  • Contact

Tag: Salesforce Base URL

Salesforce Base URL

//To find Salesforce Base URL

//Till API Version 58.0
system.debug('@@@@' + URL.getSalesforceBaseUrl());

//After API Version 58.0
system.debug('@@@@' + URL.getOrgDomainUrl()); //Canonical URL
system.debug('@@@@ ' + URL.getCurrentRequestUrl()); //URL of an entire request

For more information, please check the URL Methods.

Unknown's avatarAuthor Jyotirmay PaulPosted on July 14, 2024July 14, 2024Tags Apex, Salesforce Base URLLeave a comment on Salesforce Base URL

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 5 other subscribers
  • Home
  • Contact
Centricity Force Blog at WordPress.com.
  • Subscribe Subscribed
    • Centricity Force
    • Already have a WordPress.com account? Log in now.
    • Centricity Force
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar