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 5 years, 6 months 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.

  • [adinserter block='9']
  • 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.