Skip to content

Instantly share code, notes, and snippets.

View peterknolle's full-sized avatar
💭
🎅

Peter Knolle peterknolle

💭
🎅
View GitHub Profile
@OscarScholten
OscarScholten / setTriggerStatus.ts
Last active May 12, 2021 02:50
SFDX command for setting Apex trigger status to Active or Inactive
import { flags, SfdxCommand } from '@salesforce/command';
import { AnyJson } from '@salesforce/ts-types';
import { Connection, RecordResult } from 'jsforce';
export default class SetTriggerStatus extends SfdxCommand {
public static description = "Set status of all triggers to Active or Inactive";
public static examples = [
`$ sfdx hr2day:setTriggerStatus --targetusername myOrg@example.com -s Active`