Skip links

Transforming Our Salesforce Project with Financial Force Lightning Base (FFLIB)

Jump To Section

Transforming Salesforce Project with FFLIB

Introduction

In the fast-paced world of software development, success stories often hinge on one crucial factor: adaptability. When it comes to building applications on the Salesforce platform, adaptability is the name of the game. And that’s precisely where FinancialForce Lightning Base (FFLIB) comes into the picture.

In this blog, we’re excited to share our journey of implementing FFLIB in one of our ongoing Salesforce projects. We’ll take you through the real-world improvements and transformations that FFLIB brought to the table, turning an ordinary project into an extraordinary one.

What is FFLIB?

Before we delve into our project’s transformation, let’s define FFLIB. FFLIB stands for FinancialForce Lightning Base, a robust framework designed to help developers build scalable and maintainable applications on the Salesforce platform. It encapsulates a comprehensive set of design patterns and a structured approach to development. This framework ensures that your Salesforce project is set up for long-term success.

Financial Force Lightning Base

Our Ongoing Salesforce Project

Before we dive into the specifics of FFLIB, let’s set the stage by briefly introducing our ongoing Salesforce project. We are a dynamic team working on a Salesforce-based solution aimed at streamlining customer interactions, managing data, and automating business processes. As our project grew, so did our need for a solid foundation to ensure scalability, maintainability, and long-term success.

The FFLIB Difference

We recognized that implementing FFLIB was the key to unlocking our project’s full potential. Here’s how FFLIB’s design patterns revolutionized our ongoing project:

1. Selector Layer: Streamlined Querying

The Selector design pattern in FFLIB significantly enhanced our ability to query records efficiently. We could create custom queries with ease, reducing the risk of code duplication and SQL injection vulnerabilities. This made a notable difference in the speed and accuracy of our data retrieval processes.

2. Domain Layer: Encapsulated Business Logic

The Domain design pattern allowed us to encapsulate our object specific DMLs together. This abstraction simplified data updates and trigger lifecycle ensuring consistent and reliable behavior throughout our application. It meant that our project’s logic was neatly organized and separate from the data access, which greatly enhanced our development and maintenance processes.

3. Service Layer: Orchestrated Operations

The Service layer is where all the business logic and rules lived, it became the orchestrator of complex operations in our application. It managed interactions between different parts of our project and promoted code reusability. The result was reduced redundancy in our codebase and cleaner, more maintainable code.

4. Unit of Work: Ensured Data Consistency

FFLIB’s Unit of Work pattern ensured data consistency by grouping database operations into a single transaction. It simplified error handling and rollbacks, improving the reliability of our application. This level of data integrity was crucial for our project’s success.

Also read: Exploring the Power of Salesforce IoT: An Introduction

Prerequisites and Developer Perspective

To implement FFLIB, our development team needed to have a strong foundation in Salesforce, proficiency in Apex programming, and an understanding of SOQL and DML. Setting up our Salesforce Developer Environment and version control system was a necessary step to manage our code effectively.

Results and Long-Term Benefits

Implementing FFLIB wasn’t just a development choice; it was an investment in the future of our project. The advantages quickly became apparent:

  • Code Consistency: With FFLIB, our codebase remained consistent and maintainable, even as the project scaled.
  • Scalability: FFLIB’s modular approach and separation of concerns made it easier to adapt to changes without introducing complexity.
  • Code Reusability: FFLIB encouraged code reuse, reducing duplication and minimizing the potential for errors.
  • Efficiency: Optimized queries and transactions improved our application’s performance and efficiency.
  • Reduced Technical Debt: Adhering to design patterns from the start minimized technical debt and made it easier to adapt to evolving requirements.

Long-Term Vision

As we look to the future, we’re excited about the long-term benefits of implementing FFLIB in our ongoing Salesforce project. The adaptability and sustainability that FFLIB offers have positioned our project for success.

Conclusion

In this blog, we’ve shared our journey of implementing FinancialForce Lightning Base (FFLIB) in a real-world Salesforce project. FFLIB’s design patterns have transformed our ongoing project, making it more scalable, efficient, and maintainable. It’s not just a development choice; it’s a strategic investment in our project’s long-term success.

Picture of Shailesh Parnami

Shailesh Parnami

Suggested Reading

Ready to Unlock Your Enterprise's Full Potential?

Michael Woodall

Chief Growth Officer of Financial Services

Michael Woodall, as the Chief Growth Officer of Financial Services at Altimetrik, spearheads the identification of new growth avenues and revenue streams within the financial services sector. With a robust background and extensive expertise, Michael brings invaluable insights to his role.

Previously, Michael served as the Chief of Operations and President of the Trust Company at Putnam Investments, where he orchestrated strategic developments and continuous operational enhancements. Leveraging strategic partnerships and data analytics, he revolutionized capabilities across investments, retail and institutional distribution, and client services. Under his leadership, Putnam received numerous accolades, including the DALBAR Mutual Fund Service Award for over 30 consecutive years.

Michael’s dedication to industry evolution is evident through his involvement with prestigious organizations such as the DTCC Senior Wealth Advisory Board, ICI Operations Committee, and NICSA, where he served as Chairman and now holds the position of Director Emeritus. Widely recognized as an industry luminary, Michael frequently shares his expertise with various divisions of the SEC, solidifying his reputation as a seasoned presenter.

At Altimetrik, Michael plays a pivotal role in driving expansion within financial services, leveraging his expertise and Altimetrik’s Digital Business Methodology to ensure clients navigate their digital journey seamlessly, achieving tangible outcomes and exponential growth.

Beyond his corporate roles, Michael serves as Chair of the Boston Water & Sewer Commission, appointed by the Mayor of Boston, and is actively involved in various philanthropic endeavors, including serving on the board of the nonprofit Inspire Arts & Music.

Michael holds a distinguished business degree from Northeastern University, graduating with distinction as a member of the Sigma Epsilon Rho Honor Society.

Anguraj Kumar Arumugam

Chief Digital Business Officer for the U.S. West region

Anguraj is an accomplished business executive with an extensive leadership experience in the services industry and strong background across digital transformation, engineering services, data and analytics, cloud and consulting.

Prior to joining Altimetrik, Anguraj has served in various positions and roles at Globant, GlobalLogic, Wipro and TechMahindra. Over his 25 years career, he has led many strategic and large-scale digital engineering and transformation programs for some of world’s best-known brands. His clients represent a range of industry sectors including Automotive, Technology and Software Platforms. Anguraj has built and guided all-star teams throughout his tenure, bringing together the best of the techno-functional capabilities to address critical client challenges and deliver value.

Anguraj holds a bachelor’s degree in mechanical engineering from Anna University and a master’s degree in software systems from Birla Institute of Technology, Pilani.

In his spare time, he enjoys long walks, hiking, gardening, and listening to music.

Vikas Krishan

Chief Digital Business Officer and Head of the EMEA region

Vikas (Vik) Krishan serves as the Chief Digital Business Officer and Head of the EMEA region for Altimetrik. He is responsible for leading and growing the company’s presence across new and existing client relationships within the region.

Vik is a seasoned executive and brings over 25 years of global experience in Financial Services, Digital, Management Consulting, Pre- and Post-deal services and large/ strategic transformational programmes, gained in a variety of senior global leadership roles at firms such as Globant, HCL, Wipro, Logica and EDS and started his career within Investment Banking. He has developed significant cross industry experience across a wide variety of verticals, with a particular focus on working with and advising the C-Suite of Financial Institutions, Private Equity firms and FinTech’s on strategy and growth, operational excellence, performance improvement and digital adoption.

He has served as the engagement lead on multiple global transactions to enable the orchestration of business, technology, and operational change to drive growth and client retention.

Vik, who is based in London, serves as a trustee for the Burma Star Memorial Fund, is a keen photographer and an avid sportsman.

Megan Farrell Herrmanns

Chief Digital Officer, US Central

Megan is a senior business executive with a passion for empowering customers to reach their highest potential. She has depth and breadth of experience working across large enterprise and commercial customers, and across technical and industry domains. With a track record of driving measurable results, she develops trusted relationships with client executives to drive organizational growth, unlock business value, and internalize the use of digital business as a differentiator.

At Altimetrik, Megan is responsible for expanding client relationships and developing new business opportunities in the US Central region. Her focus is on digital business and utilizing her experience to create high growth opportunities for clients. Moreover, she leads the company’s efforts in cultivating and enhancing our partnership with Salesforce, strategically positioning our business to capitalize on new business opportunities.

Prior to Altimetrik, Megan spent 10 years leading Customer Success at Salesforce, helping customers maximize the value of their investments across their technology stack. Prior to Salesforce, Megan spent over 15 years with Accenture, leading large transformational projects for enterprise customers.

Megan earned a Bachelor of Science in Mechanical Engineering from Marquette University. Beyond work, Megan enjoys playing sand volleyball, traveling, watching her kids soccer games, and is actively involved in a philanthropy (Advisory Council for Cradles to Crayons).

Adaptive Clinical Trial Designs: Modify trials based on interim results for faster identification of effective drugs.Identify effective drugs faster with data analytics and machine learning algorithms to analyze interim trial results and modify.
Real-World Evidence (RWE) Integration: Supplement trial data with real-world insights for drug effectiveness and safety.Supplement trial data with real-world insights for drug effectiveness and safety.
Biomarker Identification and Validation: Validate biomarkers predicting treatment response for targeted therapies.Utilize bioinformatics and computational biology to validate biomarkers predicting treatment response for targeted therapies.
Collaborative Clinical Research Networks: Establish networks for better patient recruitment and data sharing.Leverage cloud-based platforms and collaborative software to establish networks for better patient recruitment and data sharing.
Master Protocols and Basket Trials: Evaluate multiple drugs in one trial for efficient drug development.Implement electronic data capture systems and digital platforms to efficiently manage and evaluate multiple drugs or drug combinations within a single trial, enabling more streamlined drug development
Remote and Decentralized Trials: Embrace virtual trials for broader patient participation.Embrace telemedicine, virtual monitoring, and digital health tools to conduct remote and decentralized trials, allowing patients to participate from home and reducing the need for frequent in-person visits
Patient-Centric Trials: Design trials with patient needs in mind for better recruitment and retention.Develop patient-centric mobile apps and web portals that provide trial information, virtual support groups, and patient-reported outcome tracking to enhance patient engagement, recruitment, and retention
Regulatory Engagement and Expedited Review Pathways: Engage regulators early for faster approvals.Utilize digital communication tools to engage regulatory agencies early in the drug development process, enabling faster feedback and exploration of expedited review pathways for accelerated approvals
Companion Diagnostics Development: Develop diagnostics for targeted recruitment and personalized treatment.Implement bioinformatics and genomics technologies to develop companion diagnostics that can identify patient subpopulations likely to benefit from the drug, aiding in targeted recruitment and personalized treatment
Data Standardization and Interoperability: Ensure seamless data exchange among research sites.Utilize interoperable electronic health record systems and health data standards to ensure seamless data exchange among different research sites, promoting efficient data aggregation and analysis
Use of AI and Predictive Analytics: Apply AI for drug candidate identification and data analysis.Leverage AI algorithms and predictive analytics to analyze large datasets, identify potential drug candidates, optimize trial designs, and predict treatment outcomes, accelerating the drug development process
R&D Investments: Improve the drug or expand indicationsUtilize computational modelling and simulation techniques to accelerate drug discovery and optimize drug development processes