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

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!!





Currently, the only way to perform synchronous callouts is through VisualForce.  You should log this idea on the Idea Exchange.


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


Please Vote!