Skip to content

SFDX plugin to disable the Salesforce process, flow and ApexTrigger in bulk, and restore the state before invalidation.

License

Notifications You must be signed in to change notification settings

shinchit/sfdx-switch

Repository files navigation

sfdx-switch

SFDX plugin to disable the Salesforce process, flow and ApexTrigger in bulk, and restore the state before invalidation.

Version Known Vulnerabilities Downloads/week License

Install

$ sfdx plugins:install sfdx-switch

Commands

sfdx switch:off [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

Disable the state of Salesforce processes, flows and Apex triggers at once.

USAGE
  $ sfdx switch:off [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -u, --targetusername=targetusername                                               username or alias for the target
                                                                                    org; overrides default target org

  --apiversion=apiversion                                                           override the api version used for
                                                                                    api requests made by this command

  --json                                                                            format output as json

  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)  [default: warn] logging level for
                                                                                    this command invocation

EXAMPLE
  $ sfdx switch:off --targetusername username@example.com

See code: src/commands/switch/off.ts

sfdx switch:return [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

Restores the state of Salesforce processes, flows and Apex triggers at once.

USAGE
  $ sfdx switch:return [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

OPTIONS
  -u, --targetusername=targetusername                                               username or alias for the target
                                                                                    org; overrides default target org

  --apiversion=apiversion                                                           override the api version used for
                                                                                    api requests made by this command

  --json                                                                            format output as json

  --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)  [default: warn] logging level for
                                                                                    this command invocation

EXAMPLE
  $ sfdx switch:return --targetusername username@example.com

See code: src/commands/switch/return.ts

Note

This plugin can only inactivate Apex Trigger, which is unmanaged as packaged. Please note that ApexTrigger, an external package introduced by AppExchange etc., cannot be inactived.

About

SFDX plugin to disable the Salesforce process, flow and ApexTrigger in bulk, and restore the state before invalidation.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published