function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Lightning UserLightning User 

Server URL

Is there an equivalent of  $Api.Enterprise_Server_URL_111 in an Apex Class? To get the session Id, I need UserInfo.getsessionid(), but is the only way to get the URL by setting it as a formula field somewhere and retrieve it? I can't see any other way...
dev_forcedev_force
Passing the url to a visualforce controller via the visualforce page is possible.