Activity Forums Salesforce® Discussions why Synchronous Web service callouts are not supported from scheduled Apex ??

  • why Synchronous Web service callouts are not supported from scheduled Apex ??

    Posted by Ayush on January 22, 2020 at 2:18 pm

    why Synchronous Web service callouts are not supported from scheduled Apex ??

    Marziya replied 4 years, 9 months ago 2 Members · 1 Reply
  • 1 Reply
  • Marziya

    Member
    January 22, 2020 at 2:44 pm

    Hi Ayush,

    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