function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
StaciStaci 

creating a license custom object to show licenses between business units

I currently have a custom object called Licenses__c.  The Apex code doesn't work properly and I need to redo it.  I need to show a list that shows the license group (Business Unit - License Type) Example: ECRM - Full Cloud, ECRM - Partner Community, etc.  I have several business units in one org so I need a way to regulate the licenses.  When a user is created with a specific license group, I want the counts to update (increase the number used & decrease the number available).  Similar when a user is deactivated, reduce the number used and increase the number available.  I also need to take into account when a user is moved from one license group to another.  Is there any examples of this somewhere or can someone start me in the right direction?