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
Scott.MScott.M 

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

 

 

nnewbold-sfdcnnewbold-sfdc

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/

paul-lmipaul-lmi

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.

Scott.MScott.M

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!