Guest User

Untitled

a guest
Feb 21st, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. trigger testvalidate on Account (before insert) {
  2.  
  3. for (Account a : trigger.new)
  4. {
  5. ...
  6.  
  7. HttpRequest req = new HttpRequest();
  8. req.setEndpoint('https://my url here ...');
  9. req.setMethod('POST');
  10. req.setBody(json);
  11.  
  12. Http http = new Http();
  13. HttpResponse resp = http.send(req);
  14.  
  15. ...
  16. }
  17.  
  18. }
  19.  
  20. estvalidate: execution of BeforeInsert caused by: System.CalloutException: Callout from triggers are currently not supported. Trigger.testvalidate: line 15, column 1
Add Comment
Please, Sign In to add comment