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
This adds new Apex_Class_Namespace fields and uses the more explicit and safer version of Type.ForName. I also included a fallback to make sure no existing functionality is lost.
Expected Behavior
Custom action to run
Actual Behavior
Non-namespaced action classes will not be found or used
Steps to Reproduce the Problem
Package apex-trigger-action-framework in a Namespaced package.
Create a Trigger action handler that is not namespaced
Create a trigger action for the handler
Do DML to cause the action to happen
The text was updated successfully, but these errors were encountered:
If packaged, Actions and Finalizers use an API that cannot access classes outside of the same package. Salesforce Documentation on the Type.forName warns of this and suggests using an alternative API https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_type.htm#apex_System_Type_forName
This adds new Apex_Class_Namespace fields and uses the more explicit and safer version of Type.ForName. I also included a fallback to make sure no existing functionality is lost.
Expected Behavior
Custom action to run
Actual Behavior
Non-namespaced action classes will not be found or used
Steps to Reproduce the Problem
The text was updated successfully, but these errors were encountered: