Skip to content

Instantly share code, notes, and snippets.

View j-fischer's full-sized avatar

Johannes Fischer j-fischer

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 [email protected] -s Active`