Activity Forums Salesforce® Discussions Can a trigger make a call to the Apex Callout Method in Salesforce?

  • MOHIT

    Member
    February 11, 2020 at 6:38 pm

    callouts cannot be made from apex triggers as that restricts database transaction until the callout is completed and the time limit for this is up to 120 seconds.

    The only way to execute a callout from a trigger is to run it asynchronously and this can be achieved by executing a method with the @future method.

    • This reply was modified 4 years, 9 months ago by  Forcetalks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos