How to Mass Deactivate Salesforce Flows & Validation Rules with Config Switch
When you need to mass deactivate Salesforce Flows during a data migration, ensuring a smooth and successful data load is paramount. 🚀 However, active validation rules and automation can often stand in the way, causing your data loads to fail. ⚠️
While bypasses are excellent for keeping automation active for other users, there are times when you need a quick and comprehensive way to temporarily disable these components. 🔧
That’s where Config Switch from Toolkit for Salesforce becomes an invaluable tool. 💡 It allows you to quickly manage and temporarily deactivate Salesforce Flows, Validation Rules, and other automation—all from one centralized interface. 🎯
In this tutorial, we’ll walk through 5 easy steps to manage your Salesforce automation more efficiently, temporarily deactivate the components that could interfere with your data migration, and restore them when you’re finished. ✅
Let’s get started! 🚀
Table of Contents
Introduction to Config Switch
A Config Switch is a powerful feature within the Toolkit for Salesforce that helps simplify the management of Salesforce metadata and configuration. Instead of making changes across multiple automation components, you can use a centralized interface to view and modify important Salesforce configuration elements.
🎛️ Think of it as a control panel for Salesforce
Config Switch provides a centralized way to manage configuration elements such as validation rules, workflows, triggers, and Flows. This becomes particularly useful when you're working with large-scale data migration projects where several automation components may need to be temporarily disabled or controlled to help ensure a successful import.
Part of the Toolkit for Salesforce
Rather than managing every automation component individually, Config Switch gives Salesforce administrators a centralized interface for viewing and modifying supported metadata and configuration.
What can you manage?
🚚 Why does this matter during data migration?
Large Salesforce migrations can involve thousands or even millions of records moving into a new environment. If multiple automation components are active, they may execute as records are imported. In some migration scenarios, temporarily controlling those automations can help prevent unwanted updates, errors, or additional processing during the data load.
🎮 Try the concept
Config Switch: ON
Automation is available and can run according to
the Salesforce configuration.
Open Config Switch in Toolkit for Salesforce
Start by opening Config Switch and connecting it to your Salesforce environment.
Config Switch gives you a centralized way to manage Salesforce configuration and automation. For a migration, this can be especially useful when you need to review or temporarily control automation such as Flows, validation rules, workflows, and triggers.
To begin, navigate to cloudtoolkit.co.
From the left-hand menu, select Config Switch.
You will then be prompted to log into your Salesforce environment.
After logging in, look for the option labeled Get Metadata. This is where Config Switch begins retrieving the configuration information from your Salesforce environment.
Select Config Switch from the left-hand menu to begin.
🧠 Quick Check: What's the next move?
You've opened Config Switch. Before moving forward, which option should you look for after connecting to your Salesforce environment?
Get Your Salesforce Metadata
Bring your Salesforce configuration into one centralized view.
Clicking Get Metadata retrieves the Salesforce configuration components available in your environment and brings them into Config Switch.
🎯 One Centralized View
Instead of opening individual Salesforce Setup pages, Config Switch brings relevant configuration components together in one interface.
🔎 Easier to Identify Automation
Having your metadata in one place makes it easier to identify the validation rules, workflows, triggers, and Flows that may affect your data migration.
Migration Tip: Getting your metadata first gives you a clearer picture of the automation and configuration that may need to be reviewed before importing large amounts of data into Salesforce.
Turn Off the Salesforce Flow
Use Config Switch to temporarily deactivate the Flow before making your migration changes.
For this demonstration, we'll work with the Cancel Policy Flow, which is currently active in Salesforce. The goal is to turn it off through Config Switch rather than navigating through Salesforce Setup.
Open Process Flows
In Config Switch, navigate to the Process Flows tab.
Find Cancel Policy
Locate the Cancel Policy Flow in the list of available Process Flows.
Turn It Off & Deploy
Toggle the Flow to the off position, then click Deploy Changes.
Don't stop at the toggle. After switching the Flow off, remember to click Deploy Changes so the configuration change is applied.
Confirm the Flow Is Deactivated
Don't assume the change worked — verify it directly in Salesforce.
The deployment is done. Now verify the result. Return to your Salesforce environment and confirm that the Cancel Policy Flow is no longer active.
Restore the Original Configuration
Finished testing? Now let's safely return Salesforce to its original configuration.
One of the most useful features of Config Switch is Rollback to Original. Instead of manually reversing the changes, you can use the rollback option to restore the configuration that was there before.
Click "Rollback to Original"
In Config Switch, select Rollback to Original. This reverses the change made earlier and restores the Cancel Policy Flow to its original state.
- ✓ Deploy the rollback changes from Config Switch.
- ✓ Return to your Salesforce Flows page.
- ✓ Refresh the page to load the latest configuration.
- ✓ Find the Cancel Policy Flow and confirm that it is active again.
Mass Deactivate Salesforce Validation Rules
The same Config Switch workflow you used for Salesforce Flows can also be applied to Salesforce Validation Rules and other automation components. Instead of managing each configuration individually, you can work with multiple components from one centralized interface.
The migration challenge
Large Salesforce data migrations can involve dozens or even hundreds of validation rules and automation components that may interfere with the data import.
The Config Switch approach
Config Switch gives you a centralized place to locate and manage these configuration components instead of navigating through multiple Salesforce Setup screens.
When a large data import is being performed, multiple automation components can create unexpected interruptions. Being able to manage those components from one place can make the migration process easier to control and organize.
When Should You Use Config Switch?
Config Switch becomes especially useful when you're working with Salesforce environments where multiple automation components need to be temporarily changed, tested, or managed. Here are the situations where it can save you the most time.
Large Salesforce Data Migrations
Importing a significant volume of records? Temporarily managing automation can help prevent unexpected interruptions during the data load.
Large Data Imports
When you're bringing substantial amounts of data into Salesforce, automation may affect the way records are processed. Config Switch gives you a centralized way to manage those components.
Temporary Automation Changes
Need to temporarily turn specific automation off for maintenance, troubleshooting, or testing? Config Switch can make those configuration changes easier to manage.
Bulk Rule Management
Working with multiple Validation Rules, Flows, or other components? Managing them from one interface can be much more efficient than changing each one individually.
Save Time on Repetitive Changes
Instead of repeatedly navigating through Salesforce Setup, Config Switch provides a centralized workflow for managing configuration changes.
Testing & Troubleshooting
When you're trying to isolate the impact of automation, temporarily changing configuration can help you identify what is affecting your Salesforce process.
Config Switch is excellent for temporary, centralized configuration changes. But if only one migration user needs an exception while automation remains active for everyone else, a bypass strategy may be more appropriate.
Before You Deploy: Best Practices
Config Switch makes temporary Salesforce configuration changes much easier to manage. But before you deactivate automation or deploy a change, run through this quick checklist.
💡 Click each item as you complete it. Your deployment readiness will update automatically.
Be certain about which Flows, Validation Rules, or other automation components you're changing. Know what each component controls before turning it off.
Run a smaller test data load first. This gives you a chance to catch unexpected behavior before affecting a large number of records.
After clicking Deploy Changes, return to Salesforce and confirm that the intended configuration was actually applied.
Record which automation was temporarily changed, why it was changed, and when it should be restored.
Make sure you know how to return Salesforce to its original configuration once the migration or maintenance task is complete.
Once the task is finished, re-enable the Flows, Validation Rules, and other automation that was temporarily deactivated.
Temporary configuration changes should always have three things: a clear reason, a way to verify the change, and a plan to restore the original configuration.
Conclusion: Take Control of Salesforce Automation
Config Switch gives Salesforce administrators and consultants a much simpler way to manage automation when a temporary configuration change is needed. Instead of opening Salesforce Setup and manually changing each component, you can manage multiple Flows, validation rules, and other metadata from one centralized interface.
Config Switch Challenge
You’re the Salesforce admin. A migration is about to begin. Can you choose the right configuration move?
Frequently Asked Questions About Config Switch
Finished the tutorial? Here are the answers to some of the most common questions about using Config Switch to manage Salesforce Flows, validation rules, and other configuration changes.
Instead of manually navigating through Salesforce Setup to change individual components, you can use Config Switch to manage items such as Flows, validation rules, workflows, and triggers.
Config Switch can make it easier to temporarily deactivate applicable automation before importing data and restore the original configuration after the migration.
After deployment, you should return to Salesforce and verify that the Flow is no longer active.
This can be particularly helpful when a migration requires several validation rules or automation components to be temporarily changed.
This gives you a centralized view of the automation and rules available in your Salesforce environment so you can identify the components you need to manage.
For example, after deactivating a Flow in Config Switch, return to Salesforce, refresh the Flows page, and confirm that the Flow is no longer active.
This allows you to restore the original configuration after the temporary change is no longer needed.
If automation needs to remain active for most users while only a specific migration user bypasses it, a permission-based bypass may be more appropriate.
If you need to temporarily deactivate configuration for a broader migration or maintenance task, Config Switch can provide a more centralized approach.
Then verify the restored configuration directly in Salesforce and perform appropriate testing.
Know exactly what you're changing, verify the deployment, document the change, test your migration, and restore the original configuration when you're finished.
Ready to Go Beyond This Salesforce Tutorial?
Configuring Salesforce is only one part of becoming a confident Salesforce administrator or migration specialist. Keep building your skills with practical tutorials and training designed around real Salesforce data migration challenges.
Build practical Salesforce skills you can apply to real-world administration and data migration projects.