How to Fix ‘System.LimitException: Too many callouts: 1 Exception’ in Batch Apex Salesforce?

How to Fix ‘System.LimitException: Too many callouts: 1 Exception’ in Batch Apex Salesforce


If you are using batch class, then make sure to implement "Database.AllowsCallouts" to resolve System.LimitException: Too many callouts: 1 Exception follow below sample code.


Solution:

global class BatchClass implements Database.Batchable<sObject>, Database.AllowsCallouts

Follow Us

Posted By : Sudeer Kamat Date :

view_module Related

label Labels

Comments 0