Skip to main content

I am planning to enable the “Enforcing No-Argument Constructor on Apex Classes Used for Invocable Action Parameters” release update in PROD and would like to ensure that the DLRS

 managed package complies with the requirements of this update. 

 

So, could you please confirm if apex classes used for invocable action within your managed package have public no-argument constructors? 

For example, the RollupActionCalculate class. 

 

Thank you. 

#DLRS #DLRS Package

2 answers
  1. Feb 26, 1:44 AM

    @Shaher Cardona

    lucky thing the code for DLRS is open and publicly viewable. 

     

    This is the only Invocable action in DLRS. It doesn't have any constructors on it at all. Reading the release notes it is not clear to me if that could be a problem. 

     

    https://github.com/SFDO-Community/declarative-lookup-rollup-summaries/blob/61d1cc9fb7d2c55ff9669302a659b962eb5abefe/dlrs/main/classes/RollupActionCalculate.cls#L48

     

     

    As with most things, enable it in a Sandbox and confirm it behaves the way you want.

0/9000