Activity Forums Salesforce® Discussions Why is it must to specify Database.allowCallouts in the class defination in Salesforce?

  • Prachi

    Member
    August 9, 2018 at 6:06 am

    Hello Anjali,

    Database.AllowCallout helps in integrate salesforce with external server by making a call to an external web service . That is why it is must to specify Database.allowCallouts in the class defination to use callouts in batch apex

    If you want to integrate other party then we have to use Database.AllowsCallouts interface. It is used to allow Callouts in batch Apex Callouts include HTTP requests as well as methods defined with the web Service keyword.

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos