Activity Forums Salesforce® Discussions What is the use of @InvocableMethod in Salesforce?

  • Laveena

    Member
    August 9, 2019 at 11:43 am

    Hi Saddam,

    While the Process builder is very flexible out of the box, there are a few business use cases those are not achievable using it. For example

    1. It doesn’t support outbound messages
    2. It doesn’t support creation of multiple records
    3. It doesn’t allow us to delete a record

    When no other process action can get the job done, add customized functionality to your Salesforce processes by calling an Apex method. To call an Apex method, add the Call Apex action to your process and select an Apex class with an @invocable method Annotation. It means they allow us to extend the Process Builder by writing Apex code that meets certain criteria, and then invoking the Apex from our Processes. If the class contains one or more invocable variables, manually enter values or reference field values from a related record. @InvocableMethod Annotation support bulk operations.

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos