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
Anbu_KSAnbu_KS 

"Callout from triggers are currently not supported" ?....

Dear all,

 

I need to call .net webservice from my salesforce.

 

 

I have a trigger on the Account Object that calls a class. That class then calls another class that makes an HTTP GET request to a .Net Web Service.
 
However I get the error:
 
"Callout from triggers are currently not supported".
 
How can I send data to an external Web Service using Apex code?

 

I don't know where i am missing.

 

Any advice? or any alternate?

 

If  anybody having clear working Samples  kindly send me the code...

 

 

Thanks in advance,

 

Anbu_KS

SuperfellSuperfell
You can't make a callout with a pending db transaction, hence the error when you try and do it from a trigger, you'll have to use the @future feature, to have your callout made externally to the trigger context.