I am working on the requirement where I have to setup the limit on number of records created on 10 custom objects.
So I have created one object called Limit__c which contains available_limit__c and required_limit__c fields.
Suppose there is an object Demo1 for which available limit is 5 records and if user try to create more than 5 records then it throws error message.
Same need to be done for all 10 objects.
I know this can be achieved by trigger on that object.
But do I need to write separate trigger for each object or there's any thing through which I need to write one trigger and can controll all the objects.
I have Limit__c object from where I can get the available limit for each object.