You need to sign in to do that
Don't have an account?
Amay
How to write a generic trigger for all objects. Can it be made configurable somehow?
I have a TriggerHandler class, which is quite generic and my trigger template remains same for every object needed for my usecase. Please tell me How do i configure the trigger scripts somehow, so that based on the object name I pass, it creates a trigger for that object (Standard objects as well as custom ones), can this be achieveable through custom metadata or any other things?
It seems not possible.
Have you checked discussion on below link which expalin a use case similar to yours ?
https://salesforce.stackexchange.com/questions/17527/generic-apex-trigger
https://salesforce.stackexchange.com/questions/138980/create-one-trigger-for-all-sobject-types
Thanks!