You need to sign in to do that
Don't have an account?
nicloz
Callout from triggers are currently not supported
Dears
May anybody helpe with this issue? I cannot make a callout from my trigger, please to see the call please follow the link (link of this community) to another case that ass the complete trigger and class.
Link to track and see the complete code: http://boards.developerforce.com/t5/Apex-Code-Development/ApexCode-bug/m-p/210323#M37315
Important to mention that I am using @future (callout=true).
I hope someone can help me.
Thanks in advance.
As per your code method "invokeWebService" should be mark as Isfuture. Also code is not correct ar=t most of the places.
For example:
// Create a new http object to send the request object
// A response object is generated as a result of the request
Http http = new Http();
HTTPResponse res = http.send(req);
req.setMethod('POST');
setMethod should be done before you send the request.