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
henryCHhenryCH 

Call Apex Webservice using Outbound Message

Hi everybody,

I'd like to know if it's possible to call an Apex based Webservice method using a standard outbound message?
Seems to be an odd idea at first glance but we have some use cases/situations that would require a minor delay in processing, like a webservice call, and that can not be realised using triggers. So did anybody manage to do this??

Thanks and best regards,
Henry
David VPDavid VP

How about using a time-based worklfow + field update (set a flag somewhere) + an 'on update' trigger ?

That will get you a 'minor delay' ...


David

SuperfellSuperfell
No you can't do that. look at the @future feature in apex instead.
henryCHhenryCH
Thanks for your fast replies!

The minimum delay for a time based workflow is one hour, which is too long for my purposes. So I tried the @future annotation, (requires a static method with primitive typed parameters only = extra work) and that seemed to work fine. My next conern, do I have to expect that the delay could be 10 hours if salesforce.com's servers are under heavy pressure? Is there a maximum waiting time or even a timeout for the queue of asynchronous method calls?

Best regards,
Henry