+ 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