Activity Forums Salesforce® Discussions Can a trigger call a batch class in Salesforce?

  • Deepak

    Member
    July 10, 2020 at 5:53 am

    Yes, you can call batch apex from a apex trigger.

  • Ratnesh

    Member
    July 10, 2020 at 6:44 am

    you can only have five batch job running so calling batch from a trigger is almost certainly not a good idea. At a time only 5 apex batch jobs can be processed

  • Anjali

    Member
    July 10, 2020 at 2:16 pm

    Yes a batch class can be called in apex trigger but it doesn't follow the best practices.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos