You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[apex] New Rule: Invocable Classes require a no argument constructor #6793
Description:
Apex classes that declare @InvocableVariable fields or properties must expose an
accessible no-argument constructor. Salesforce Flow instantiates these classes via a
zero-arg constructor. When a developer adds any explicit constructor, Apex no longer
synthesises a default one, so Flow cannot create an instance and throws a runtime error. E.g. System.TypeException: MyInvocableClass does not have a no-arg constructor.
Global classes have an additional requirement: the no-arg constructor must be global
so that it remains accessible from managed packages.
Activity
[doc] Update release notes (pmd#6793, pmd#6794)