getSalesforceBaseUrl() Method Is Being Deprecated
https://help.salesforce.com/s/articleVie ... 6&type=5In API version 59.0 and later, the getSalesforceBaseUrl() method is deprecated and no longer available. 
Instead use getOrgDomainUrl() to get your org URL or getCurrentRequestUrl() to get the URL of an entire request on a Salesforce instance. 
Attempting to use the deprecated method in API version 59.0 and later results in a compilation error.