From a979546a9e75d154497695e99e4687b6748bc5df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20S=C3=B6semann?= Date: Mon, 22 Oct 2018 12:41:26 +0200 Subject: [PATCH] Remote sites became redundant with Winter'19 With Winter'19 remote site setting for Metadata API calls from Apex are not needed anymore https://releasenotes.docs.salesforce.com/en-us/winter19/release-notes/rn_apex_streamline_api_calls.htm I just replace the URL creation code. Someone also might want to remove the Remote site helper files. --- apex-mdapi/src/classes/MetadataService.cls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apex-mdapi/src/classes/MetadataService.cls b/apex-mdapi/src/classes/MetadataService.cls index dbfe938..21b153e 100644 --- a/apex-mdapi/src/classes/MetadataService.cls +++ b/apex-mdapi/src/classes/MetadataService.cls @@ -13190,7 +13190,7 @@ public class MetadataService { private String[] field_order_type_info = new String[]{'active','adjustmentsSettings','displayedCategoryApiNames','forecastRangeSettings','forecastedCategoryApiNames','forecastingDateType','hasProductFamily','isAmount','isAvailable','isQuantity','managerAdjustableCategoryApiNames','masterLabel','name','opportunityListFieldsLabelMappings','opportunityListFieldsSelectedSettings','opportunityListFieldsUnselectedSettings','opportunitySplitName','ownerAdjustableCategoryApiNames','quotasSettings','territory2ModelName'}; } public class MetadataPort { - public String endpoint_x = URL.getSalesforceBaseUrl().toExternalForm() + '/services/Soap/m/42.0'; + public String endpoint_x = Url.getOrgDomainUrl().toExternalForm() + '/services/Soap/m/44.0'; public Map inputHttpHeaders_x; public Map outputHttpHeaders_x; public String clientCertName_x; @@ -13532,4 +13532,4 @@ public class MetadataService { return response_x.result; } } -} \ No newline at end of file +}