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

  • Saddam

    Member
    August 9, 2019 at 11:33 am

    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

Viewing 1 - 2 of 2 posts

Log In to reply.

Popular Salesforce Blogs

Salesforce Marketing Cloud Integration with Google Analytics 360

Redefining the future of Marketing – Salesforce Marketing Cloud Integration with Google Analytics 360

Blog in

Know your customers better and make smarter, insight-based marketing decisions through Salesforce’s massive customer relationship management platform twinned with Google Analytics 360’s market-leading digital analytics solution…

Popular Salesforce Videos