Making a callout from an Apex trigger is not allowed synchronously; hence, such callouts must be performed in an asynchronous context. The only way to perform this within the Salesforce platform is by using asynchronous Apex, such as @future methods or Queueable Apex.
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit