Activity Forums Salesforce® Discussions What is Database.AllowCallouts in Salesforce?

  • Deepak

    Member
    February 26, 2020 at 5:35 pm

    Hi Aditya,

    Database.AllowCallouts are used to allow Callouts in batch Apex, “Callouts include HTTP requests as well as methods defined with the web service keyword”. To use a callout in batch Apex, specify Database.AllowsCallouts in the class definition. For example:

    global class SearchAndReplace implements Database.Batchable<sObject>, Database.AllowsCallouts{
    }

    For further details refer to this link :
    https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_batch_interface.html

Log In to reply.

Popular Salesforce Blogs

Success Stories – How DemandBlue Helped Its Clients Improve Revenue Recognition with Salesforce Revenue Cloud Implementation

Blog in

Businesses that deal with subscription-based contracts, usage-based billing or other complex contracts face several difficulties in managing their billing cycle. Though Salesforce CPQ implementation does the heavy-lifting…

Popular Salesforce Videos