Activity Forums Salesforce® Discussions Is it possible to do synchronous web service callouts from scheduled apex in Salesforce?

  • shradha jain

    Member
    August 21, 2018 at 1:03 pm

    Hello Madhulika,

    No, Synchronous Web service callouts are not supported from scheduled Apex. To be able to make callouts, make an asynchronous callout by placing the callout in a method annotated with @future(callout=true) and call this method from scheduled Apex. However, if your scheduled Apex executes a batch job, callouts are supported from the batch class.

    Thanks.

  • shariq

    Member
    September 17, 2018 at 10:54 pm

    Hi,

    You need to make the callout from a @future or queueable method.

    Hope this helps.

  • Parul

    Member
    September 21, 2018 at 1:47 pm

    I think synchronous web service callouts from scheduled apex is able to make callouts make an asynchronous callout by placing the callout in method annotated with  @future(callout=true).

     

    THanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos