Build a Reactive Budget Tracker with Declarative Flow Builder
Salesforce’s Spring ’25 release introduces reactive capabilities in Flow Builder, allowing you to build real-time screen flows that update without writing code. In this example, we’ll create a Reactive Budget Tracker that instantly calculates the remaining budget and percentage spent as users update their Monthly and Current Expenses.
Important:?Before you begin, ensure that your organisation’s?Process Automation Settings enable Reactive Components for Specific Flow Versions. This setting is essential for the reactive formulas to work correctly.
Scenario: Real?Time Expense Monitoring
Imagine a manager or employee entering two key values on a flow screen:
Using Flow Builder’s reactive formulas, the screen will automatically display:
These instant calculations provide users with real?time insights into spending, enabling them to take immediate action if needed.
Step?by?Step Implementation
1. Enable Reactive Components in Your Org
Before creating your flow:
This setting is crucial to activating the real?time reactive behaviour in your flows.
2. Create a New Screen Flow
3. Add Input Components
On your flow screen, add two Number Input fields:
These input components allow users to provide the budget and expense details.
4. Create Reactive Display Text with Formula
Add a Display Text component to the screen to show the calculated results. In the Display Text editor, include the following formulas:
Thanks to the reactive behaviour enabled earlier in the Process Automation setting, these formulas will automatically recalculate whenever the user updates the Monthly Budget or Current Expense values.
5. (Optional) Add Conditional Messaging
For enhanced usability, you can add a conditional Display Text component to warn users if their expenses exceed the budget. For example:
6. Test and Deploy the Flow
Benefits of the Reactive Budget Tracker
Conclusion
Salesforce Spring ’25’s enhanced Flow Builder capabilities allow you to deliver real?time business insights through reactive screen flows—without writing code. By enabling the Enable Reactive Components for Specific Flow Versions setting in Process Automation Settings, you unlock the power of reactive formulas, as demonstrated by our Reactive Budget Tracker example. This approach streamlines expense monitoring and empowers users to make timely decisions.
The Salesforce Release Notes provide additional details on reactive components and other Spring ’25 enhancements.