Provide Visible No-Argument Constructors for Custom Apex Classes Used as Invocable Action Parameters in API Version 66.0 and Later

Provide Visible No-Argument Constructors for Custom Apex Classes Used as Invocable Action Parameters in API Version 66.0 and Later

If you haven't enabled the Enforcing No-Argument Constructor release update, a versioned change now implements this requirement. Starting in API version 66.0, Apex classes used for invocable action parameters must have a visible no-argument constructor. The constructor must be public for non-packaged classes or global for packaged classes invoked from outside the package. Use API version 65.0 or earlier with the release update disabled to maintain the previous behavior.

Where: This change applies to Lightning Experience and Salesforce Classic in Enterprise, Performance, Unlimited, and Developer editions.