We are busy with a managed package but we want to use a bit of an other license management then the normal flow. In the normal flow you can control the users that have access via the license managent org. But we want to control the number of records somebody already created.
My thought was to check the number of records in a trigger on that object and then block the user from creating if he exceeds the number we specified. We could store the number in a custom setting that we set private so only apex can access it.
Now my question is, is this a good approach and most of all how can i update that number from the LMA org when the customer decides to buy additional records or change his license?
Do we need to patch that customer's org? or is there a better way?
Thank you for your help