Streamlining Operational KPI and Trendlines for Optimization

In the fast-paced world of nonprofit organizations, optimizing operational efficiency is paramount. Recently, I had the opportunity to assist a client facing a common challenge: consolidating service records scattered across multiple Salesforce objects to generate comprehensive historical trends for their operational Key Performance Indicators (KPI). To tackle this task effectively, I devised a solution centered around leveraging the power of scheduled and autolaunched flows within Salesforce.

SurveyVista: Effortless Data Collection to Action

Understanding the Challenge

My client’s service records were stored in two distinct Salesforce objects: Support records and Service Delivery records. To derive meaningful insights and track performance over time, it was imperative to aggregate data from these disparate sources into a unified format.

Solution Overview

To address this challenge, I devised a robust solution leveraging autolaunched flows operating as sub-flows under a schedule-triggered flow. This approach allowed for seamless integration and automation of the data consolidation process.

The solution consists of three main components:

  • Service Summary Record Custom object
  • Autolaunched flow (subflow)
  • Schedule-triggered flow

Service Summary Record Custom Object

Upon deliberation with the nonprofit customer, I planned on creating one monthly record for each client served.

This record would aggregate all the service details for the client.

Free Mentorship With Talent Stacker

See the image below for the field list of the object.

This object record would be created based on two records the nonprofit organization used in the past five years.

Support Record

Streamlining Operational KPI and Trendlines for Optimization

Service Delivery Record

Streamlining Operational KPI and Trendlines for Optimization

Autolaunched Flow (Subflow)

 

It is important to note that I attempted to do this a few years ago without success because, at the time, we had the famous “too many iterations” error in effect that prevented me from executing more than 2,000 elements in one flow run. However, the autolaunched flow, equipped with input parameters including Contact, Start Date, End Date, and a checkbox determining whether the contact should be updated, systematically processed service records for each client.

I optimized the flow several times to ensure that the extensive processing did not violate the governor limits, returning the Apex CPU error.

The final design was executed without errors, processing a full year’s data.

See the images below for the high-level flow build design.

Streamlining Operational KPI and Trendlines for Optimization
Streamlining Operational KPI and Trendlines for Optimization
Streamlining Operational KPI and Trendlines for Optimization

In addition to aggregating historical trends, the flow provided the functionality to update contact records as needed, ensuring audit capabilities. Therefore, I decided not to use this option so as not to burden the system resources further.

Schedule-Triggered Flow

I set up a schedule-triggered flow that calls the autolaunched flow as a subflow to process the historical records. I executed and processed all the past data triggering the schedule-triggered flow manually. The schedule-triggered flow now runs on the first day of the month to process all records from the previous month.

Streamlining Operational KPI and Trendlines for Optimization

 

Final Thoughts

By harnessing the capabilities of schedule-triggered and autolaunched flows within Salesforce, I successfully streamlined the process of generating operational KPI trends for my client. Consequently, this approach not only optimized workflow efficiency but also empowered the organization with actionable insights to drive informed decision-making.

In conclusion, combining schedule-triggered and autolaunched flows offers a strong method for data consolidation and insight gathering in Salesforce. Moreover, as data-driven decision-making becomes increasingly crucial, using automation tools like these flows is key to boosting efficiency and meeting strategic goals.

Finally, stay tuned for more insights and best practices in Salesforce automation as I continue to explore innovative solutions to common business challenges.

Explore related content:

Hidden Gem in Spring 23: Schedule-Triggered Flow Improvements

Scheduled Flows: Sometimes Later Is Better

Streamline Task Execution with Task and KPI Sequencing

Popular Validation Rules for Salesforce Flows including Phone, Email and Address Fields

Edited by Meredith Anglin.

Andy Engin Utkan

Andy Engin Utkan is a Salesforce MVP with 24 certifications. He is the founder of Salesforce Consulting Partner BRDPro Consulting. Utkan is a consultant, trainer, and content creator, focusing on automating business processes using Salesforce flow. He is recognized for his expertise in Salesforce flow, providing guidance through various courses and contributing actively to the Salesforce community.

6 Comments

  1. @gatortail Wait, how is your mastodon username what looks like a website? I went to salesforcebreak.com and it doesn't look like a mastodon instance at all. I'm just curious. 🙂

Leave a Reply

Back to top button

Discover more from Salesforce Break

Subscribe now to keep reading and get access to the full archive.

Continue reading