Disable a Salesforce Trigger in Production with VS Code
I recently had to disable a Salesforce Trigger from a client’s production environment. Having discovered the need last minute for a project, I needed to react quickly and make the change quickly. Since the official documentation is a bit lacking I decided it was time for blog post of better directions. The Salesforce CLI directions in the article above make a few annoying assumptions: That you’re happy to use MDAPI not SFDX. That all your tests pass in production (which should be true, but let’s be real it;s always). You enjoy working out CLI commands in a rush. What you need SFDX already setup VS Code with SFDX Extensions Pack Basic knowledge for how to use them. Disabling a Trigger Using SFDX in VS Code. Connect VS Code to your target org. Easiest solution here is to just go to the command palate and authorize an org. ...