Activity Forums Salesforce® Discussions Can we use Process Builder to schedule a Salesforce Apex Class?

  • Prakhar

    April 27, 2016 at 7:44 am

    Hey Shafali,

    Yes you can schedule your class using process builder. For this you have to make your class method as an @InvocableMethod for the static method only and only one argument is being passed in that method which will be of type list<p>.

    For help and more knowledge see this link

    Or you can directly schedule the apex class while selecting object just check the advanced checkbox and add apex through actions and set the schedule according to your need. For more information go through this link-


  • Naman

    April 27, 2016 at 7:56 am

    You can call apex method from process builder in which you can write code to schedule batch apex. To call a method in process builder you need to add annotation @InvocableMethod while defining method.

  • Divya

    October 30, 2018 at 1:55 pm

    Hi Shafali,

    yes we can, In actions section of process builder, we can execute apex method as well. This is the main advantage of process builder as we cannot execute the apex class using flows or workflows.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos