You need to sign in to do that
Don't have an account?
Ab
System.CalloutException: Callout from triggers are currently not supported.
Hello,
Excecuting below code inside trigger gave me below exception
System.CalloutException: Callout from triggers are currently not supported.
Thank you for suggestion !
Excecuting below code inside trigger gave me below exception
System.CalloutException: Callout from triggers are currently not supported.
trigger XYZ on Account (before update) { HttpRequest req = new HttpRequest(); Http http = new Http(); req.setMethod('GET'); String url = 'https://maps.googleapis.com/maps/api/distancematrix/json' + '?origins=' + address1 + '&destinations=' + address2 + '&mode=driving' + '&sensor=false' + '&language=en' + '&units=imperial'; req.setEndPoint(url); HTTPResponse resp = http.send(req); }
Thank you for suggestion !
Please review the below help link this will resolve the issue.
https://help.salesforce.com/apex/HTViewSolution?id=000176570&language=en_US
Feel free to mark this as resolved if this resolves your issue.
Regards,
Sanpreet