• #10515
    Salesforce | shafali shafali #476
    Forcetalks

    Can we use Process Builder to schedule an apex class?

    Can we use process builder to schedule an apex class?

     

    #10527
    Salesforce | Prakhar Prakhar #474
    Forcetalks

    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 http://www.forcewizard.com/blog/invoking-apex-class-process-builder.

    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- https://help.salesforce.com/apex/HTViewHelpDoc?id=process_limits_scheduled.htm&language=en_US

    Thanks.

    #10534
    Salesforce | Naman Naman #166
    Forcetalks

    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.

    #51311
     Divya #11
    Forcetalks

    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.

Viewing 4 posts - 1 through 4 (of 4 total)

Please to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2019 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?