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

Access Remote Site URLs with code

There is a list of "named" remote site URLs.

The endpoint for an HTTP callout has to be in that list.


Is there anyway to define a "remote site URL" named "XYZ" and then in code either use "XYZ" alone or to retrieve the URL for "XYZ" so that one uses the one that is valid.


Rather than hard coding it (which is basic rubbish) or having it in a system setting (which is rubbish because it multiply defines the data)