Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Winter 19 URL.getOrgDomainUrl() instead of getSalesforceBaseUrl() eliminates need for RemoteSiteSetting!!!! #237

Open
dseligson opened this issue May 5, 2019 · 2 comments

Comments

@dseligson
Copy link

https://github.com/financialforcedev/apex-mdapi/blob/526f8811d6e5ad4a86582ffa1ddb68ca99d2deda/apex-mdapi/src/classes/MetadataService.cls#L13193

Verified today that using Apex with mdapi (not Lightning Javascript + Named Credential) can now successfully call the Salesforce Metadata WebService without needing an entry in Remote Site Settings. See the Winter '19 release notes:
https://releasenotes.docs.salesforce.com/en-us/winter19/release-notes/rn_apex_streamline_api_calls.htm

Yes, you read that right. We no longer need to hide javascript in a Visualforce page that manually sends Web Service messages to create the Remote Site Setting.
Hallelujah! Somehow, I believe this was somehow an @afawcett effect, his orchestrations with Salesforce finally resulted in true progress, and probably an easier code review as well.

public String endpoint_x = URL.getOrgDomainUrl().toExternalForm() + '/services/Soap/m/42.0';

Hark the herald angel's sing, say goodbye to Remote Site Setting (okay, it doesn't quite work, but you know what i mean)

HappyFace

@rsoesemann
Copy link
Contributor

I fixed this in this Pull Request #224 which is still not merged in. I fear since @afawcett left Financilforce nobody is taking care of this project anymore.

@dseligson
Copy link
Author

dseligson commented Jun 18, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants