function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
nicloznicloz 

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.

_Prasu__Prasu_

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.