Activity Forums Salesforce® Discussions Why it is not possible to do Synchronous Web service callouts from scheduled apex in Salesforce?

  • Why it is not possible to do Synchronous Web service callouts from scheduled apex in Salesforce?

    Posted by Prachi on September 27, 2019 at 11:50 am

    Why it is not possible to do Synchronous Web service callouts from scheduled apex in Salesforce?

    Piyush replied 5 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • Piyush

    Member
    September 30, 2019 at 5:25 am

    Hi Prachi,

    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.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos