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
David.HEDavid.HE 

Invoke a callout inside a Trigger

Hi!

I need to invoke a WS when an user update an Account.

 

I had thought in calling the ws inside a trigger, but I'm getting the next exception : 

System.CalloutException: Callout from triggers are currently not supported.

 

Could you give me some tips for solving that inconvenience?

 

 

Thanks in advance

 

Best Answer chosen by Admin (Salesforce Developers) 
Saikishore Reddy AengareddySaikishore Reddy Aengareddy

You will have to create a global class with future method and then invoke the method from your trigger.

 

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_annotation_future.htm