You need to sign in to do that
Don't have an account?
Adrian Camua 21
Test Connection to External System
Hi,
Is there an easy way to confirm that my Salesforce org has access to an external endpoint? Just needing to simulate a call coming in from a Salesforce IP.
I have added the endpoint to the remote site settings also, and I've tried executing the below
However I'm getting an error message:
System.CalloutException: Read timed out
Any ideas?
Is there an easy way to confirm that my Salesforce org has access to an external endpoint? Just needing to simulate a call coming in from a Salesforce IP.
I have added the endpoint to the remote site settings also, and I've tried executing the below
Http http = new Http(); HttpRequest req = new HttpRequest(); req.setEndpoint('http://www.yourendpoint.com'); req.setMethod('POST'); // you could also set this to 'GET' and remove the next line req.setBody('body of the request'); HttpResponse response = http.send(req); System.debug('BODY: ' + response.getBody()); System.debug('STATUS: ' + response.getStatusCode());(replacing the placeholder endpoint url in the code with that of the external system - same one in the remote site setting)
However I'm getting an error message:
System.CalloutException: Read timed out
Any ideas?
1. If authentication enabled, First we need to hit the 'Authentication Server' and need to get the access token.
2. Then , By using that access token we need to hit the 'Resource Server' to get the information.
Consider we gonna integrate Salesforce with Salesforce. Below sample method will help you,
Pleas let us know, if this helps.
Thanks,
Govindaraj.S