pacx plugin step unregister - neronotte/Greg.Xrm.Command GitHub Wiki
Removes a plugin step registration.
Aliases
pacx plugin step remove
pacx plugin step del
Usage
To remove a plugin step, you have two ways:
- By specifying the unique identifier of the step:
- By specifying a surrogate key that allows to identify the step to remove, made by the name of the plugin type, the message, and optionally the table
# Using the unique identifier of the step
pacx plugin step unregister --id 3fa85f64-5717-4562-b3fc-2c963f66afa6
# Using the alternative key
pacx plugin step unregister --class Neronotte.Plugins.Account_OnPreCreate_ValidateFields --message Create --table account --stage PreOperation
Just like in the register command, for the --class argument, you can use the full name of the class,
or just (the end of) the class name if it's unique within the system.
E.g. if the actual plugin type name is Neronotte.MyProject.Plugins.Account_OnPreCreate_ValidateFields, the following are all valid options for the command:
--class Neronotte.MyProject.Plugins.Account_OnPreCreate_ValidateFields# fully qualified name--class Account_OnPreCreate_ValidateFields# just the plugin name--class MyProject.Plugins.Account_OnPreCreate_ValidateFields# unambiguos namespace + plugin name
Arguments
| Long Name | Short Name | Required? | Description | Default value | Valid values |
|---|---|---|---|---|---|
id |
id |
N | The unique identifier of the plugin step to be removed. | - | Guid |
class |
c |
N | Name of the plugin type that executes when the step is triggered. | - | String |
table |
t |
N | Primary table for the step, e.g., account, contact. Leave empty for global messages (e.g. Recalculate). | - | String |
message |
m |
N | Message that triggers the step, e.g., Create, Update, Delete. | - | String |
stage |
st |
N | Pipeline stage when the step executes. Possible values: PreValidation (10), PreOperation (20), PostOperation (40) | - | PreValidation, PreOperation, PostOperation |