This interactive demo was created free with Storylane in 2 minutes. Create your own demo
This interactive demo was created free with Storylane in 2 minutes. Create your own demo
Start free
All Tutorials /Salesforce

How to Deactivate Apex Class in Salesforce

Updated on:
May 25, 2026
By:
Madhav Bhandari
Use this interactive demo to learn how to turn off an active Apex Trigger in Salesforce.

Quick summary

This demo walks you through how to deactivate an Apex Trigger in Salesforce using Advanced Setup, without deleting the trigger or its logic. Disabling an Apex Trigger is a safe way to temporarily stop it from firing while preserving your code.


Steps

  1. Click the gear icon at the top-right menu of the dashboard to open settings.
  2. Select Open Advanced Setup from the dropdown menu.
  3. In the Quick Find search box, search for and select Apex Triggers.
  4. Select a trigger from the list and click Edit next to it, ensuring the selected trigger is currently active.
  5. Remove the check in the Active checkbox to deactivate the trigger.
  6. Check the updated status to confirm the deactivation has been successfully applied.

📌 Why this matters

Knowing how to deactivate an Apex Trigger in Salesforce is a critical admin and developer skill that prevents unwanted automation from firing during deployments, data migrations, or debugging. Rather than deleting trigger code and risking data loss, deactivating preserves your logic while immediately stopping execution. This controlled approach to Salesforce Apex Trigger management reduces risk, speeds up troubleshooting, and keeps org governance clean. It is an essential step for any Salesforce team maintaining complex automation workflows.
Your product deserves an interactive demo
Start free
Similar Articles
Salesforce

How to Use Salesforce Inspector Reloaded

Madhav Bhandari
Director of Marketing @ Storylane
Salesforce

How to Share Dashboards in Salesforce

Madhav Bhandari
Director of Marketing @ Storylane
Salesforce

How to Send Mass Emails in Salesforce

Madhav Bhandari
Director of Marketing @ Storylane
No items found.
Platform
Interactive Demos
Sandbox Demos
Buyer Hub
RepX
Integrations
Solutions
Product Marketers
Growth & Demand Gen
Sales Reps & AEs
Presales & SEs
Customer Success
Product Managers
Customers
Demo Showcase
Customer Stories
Finer Demos Club
Features
Demo Signals
Personalization
Deal Intelligence
Resources
Blog
The Plot
Tutorials
Events & webinars
Help Docs
What’s New
Demo Dundies
Company
Careers
Pricing
Partners
Contact
Trust Center
Backed by
Chrome Extension Icon
Chrome extension
Download
Desktop app
Download
Built in San Francisco Bay Area - ©2026 Storylane
Privacy PolicyTerms & Conditions
X Corp (formerly Twitter)LinkedIn
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it