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
jprosserjprosser 

Simple outbound message from a trigger

Hey Folks,
I'm trying to write a trigger that will send an outbound message to another server whenever a opportunity is won.
From what I've learned from the docs and the boards, I have to create a web service.  This is really overkill in my case as I just need the opportunity ID.

What I'd prefer to do is to make a call like "sforce.connection.remoteFunction"  but from a trigger instead of an s-control.

Does anyone know a way to do this?

Cheers,
-Joe
Ron HessRon Hess
Callouts from triggers is not supported.

You can look into the @future feature of apex code. This will enable callouts and can be queued up from a trigger. 
This is in developer perview i believe.