You need to sign in to do that
Don't have an account?
![Scott.M Scott.M](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Allow Callouts in Triggers without Async
There is a very important use case that requires callouts in triggers. The ideal way to validate data entery with an external service would be in a trigger. This requires a callout that is not async. It would be great if salesforce could support this use case!!
Scott,
Currently, the only way to perform synchronous callouts is through VisualForce. You should log this idea on the Idea Exchange.
http://ideas.salesforce.com/
they won't do it because the appropriate way to develop triggers is "bulkified", which means that each trigger call should be able to support 200 records at a time, and in your case, 200 HTTP callouts per trigger execution. it's a system load/network load issue they probably don't want to approach.
I can understand that it would be very challenging for salesforce but in the mean time it forces us to use techniques that are tied to specific input forms instead of the desired company wide validation rules.
There's already an idea on the apexchange
https://sites.secure.force.com/ideaexchange/ideaView?c=09a30000000D9xt&id=08730000000BpR4AAK&mc=0
Please Vote!