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

Web Services and triggers

Hi all,


I'm a new user and I'm experiencing some problems with Web service implementation. I would like to make a callout to an external web service


I have got the WSDL and I created the relative Apex Classes in saleforce.


Do I have to create a trigger to make the callout?Do I have ti write all the Apex Class code in the body of the trigger?

For example, I would like to create credit check for a new account, therefore I would like that before creating account, a callout to a web service could give me some information about the client.


Thanks a lot for your help!




You might want to search the Apex docs for the keyword "future". The future annotation allows you to make asynchronous Web service callouts to external services.


Here is some info regarding the future annotation.


Good luck


Jeff Douglas
Informa Plc