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
msimondsmsimonds 

Possibilites of calling external web service via APEX? a clear understanding

I wanted to understand the APEX web services a little more and I am trying to find some answers. I was hoping someone here could see if I am on the right track.

the example for APEX web services and callouts, http://wiki.developerforce.com/index.php/Apex_Web_Services_and_Callouts, shows an example of this but I wanted to ask a few questions about the callout functionality.

Could this senario take place?

1) Opportunity Trigger:  Write an after update or before update trigger on the opporntunity object that would call a APEX class

2) Opportunity APEX class - could be designed and coded to send the data from that updated record from the trigger to an external web service or callout

3) External web service could be a script that parses the data and then processes it (sticking it into a database, updating a spread sheet, etc...)


I wanted to know if I am understanding this correctly?


Thanks!!

~Mike
LeWizLeWiz

I'm really curious about this one as well.