A custom agent billing application to replace a manual, spreadsheet-based system. This automation reduced billing processing time by over 95%, dropping from three days to less than one hour, and eliminated the need for a full-time hire. By simplifying the interface to allow any team member to execute the process, I removed a single-point-of-failure risk and created a truly scalable financial workflow.
Tools: Custom Objects, Roll-Up formulas, Triggered Flows, Scheduled Flows, Lightning Aura Components, APEX Controller, Batch APEX, Visualforce Pages
We needed a complete overhaul of the organization’s monthly billing cycle for 600+ agents, which had become unsustainably reliant on fragmented Google Sheets and YAMM. The legacy process was plagued by "spreadsheet bloat," where complex nested lookups and manual data entry led to frequent calculation errors and a significant loss of data integrity. Furthermore, due to the technical limitations of the mail-merge tool, agents received cluttered, non-dynamic invoices that failed to filter out irrelevant line items, resulting in a poor user experience and high inquiry volume. This manual workflow consumed three full business days per cycle, reaching a critical tipping point where the department either required an immediate headcount increase or a sophisticated, automated technological solution to maintain operational continuity.
Engineered a proprietary Salesforce Billing Engine that transitioned a 24-hour manual cycle into a streamlined, one-hour automated workflow. By architecting a "one-click" execution model, I successfully migrated complex fee calculations into a centralized app that automatically generates dynamic invoices and archives a digital audit trail directly to the agent’s record. This solution not only eliminated the need for additional administrative headcount but also de-risked the department by simplifying a once-convoluted process into a repeatable, user-agnostic system.
On the first of the month new billing invoices are created for every agent. Throughout the month items can be added to the the invoices from the custom homepage component. When it is time for billing, the user creates a new billing cycle for the month and year then works their way through each step. On some steps it will simply totals all charges for prints, postcards, tech fees etc. that are on the invoices already. However, on some steps like lead credits, assistant fees and SMC billing, we run APEX batches to run through our people records to calculate amounts or pro-rate amounts based on data for each agent. Then, on the last step the billing cycle is closed and invoices are made for all agents, emailed to them and a copy is saved to their people object record.