Another Salesforce blog!!!

Salesforce, Apex

Get Data from HttpRequest/HttpResponse


First Authorize Endpoint Addresses:

Authorize Endpoint Addresses

We love security at Salesforce! So, any time you make a callout to an external site we want to make sure that it is authorized. We can’t have code calling out willy-nilly to any endpoint without prior approval. Before you start working with callouts, update the list of approved sites for your org on the Remote Site Settings page.
We’ll be using the following endpoints in this module, so go ahead and add them now. If you forget to add an endpoint, trust me, you’ll get a reminder when you try to run your code. We’ll be making calls to the following sites.

https://th-apex-http-callout.herokuapp.com
https://th-apex-soap-service.herokuapp.com
Authorize both of these endpoint URLs by following these steps.

Get Data from a Service

the Developer Console, select Debug | Open Execute Anonymous Window

Leave a Reply

Your email address will not be published. Required fields are marked *

*