# Can we make a synchronous web service callout directly from a trigger? Why or why not?

**Topic:** Apex Trigger · **Difficulty:** Medium · **Asked at:** Infosys, Cognizant, Tech Mahindra · **Tags:** apex-trigger, trigger, callout

Read it on the site: https://www.forcechallenges.com/interview-questions/can-we-make-a-synchronous-web-service-callout-directly-from-a-trigger-why-or-why-not

## Answer

No. Salesforce does not allow synchronous callouts from a trigger: the transaction holds database locks while uncommitted, and a slow external call would keep them open and hurt the platform. You get an error like `Callout from triggers are currently not supported`.

Make the callout asynchronously with `@future(callout=true)` or a Queueable class implementing `Database.AllowsCallouts`, called from the trigger or its handler.

---
Source: ForceChallenges · last updated 2026-10-21
