Activity Forums Salesforce® Discussions Limitations of @InvocableMethod annotation in Salesforce ?

  • Limitations of @InvocableMethod annotation in Salesforce ?

    Posted by Ayush on November 13, 2020 at 8:16 am

    <b itemprop="name">Limitations of @InvocableMethod annotation in Salesforce ?

    Shweta replied 4 years ago 3 Members · 2 Replies
  • 2 Replies
  • Anjali

    Member
    November 13, 2020 at 12:19 pm

    The Invocable method must be static and public or global , and its class must be an outer class. Only one method in a class can have the InvocableMethod annotation. Triggers can't reference Invocable methods. Other annotations can't be used with the InvocableMethod annotation.

  • Shweta

    Member
    November 13, 2020 at 1:17 pm

    An invocable method will not accept more than one argument as a method parameter. Only static methods can be invocable methods and also More than one invocable method is not allowed per class.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos