Adding On Deleted Triggers
To create a Trigger that fires when an object is deleted, follow the steps below.
INFO: For information on Triggers, see Triggers.
- From the Sidebar, navigate to Workflow and Business Logic > [Module] > [Object Class] > Workflow > Actions > Triggers > On Deleted.
- Click New. The Trigger on Delete [ID] dialog box opens.
NOTE: Note the unique auto-generated ID value. You can use this ID to quickly access the corresponding Trigger. For details, see Accessing Workflow Items or Components by ID.
- On the General tab, specify the following properties of the Trigger:
- Type the Trigger name in the Name field.
- Optional: Enter the description in the Description field.
NOTE: Keep the Enabled check box selected. Otherwise, this Trigger will not fire.
- If you want the Trigger to fire only when a certain condition occurs, click the Condition tab and specify the Trigger condition:
Click Edit and configure conditions in the Criteria dialog box.
INFO: For details, see Building Criteria.
- Click the Programming tab and specify the operations to execute directly within the Trigger or select an existing Function.
- Under Operations, click New > [Operation] and specify the operation details.
INFO: For details, see Adding Operations.
Repeat this step to add other operations as needed.
- By default, all operations are executed unconditionally. If needed, you can enclose your operations in conditional blocks.
INFO: For details, see Building Conditional Statements.
- Under Operations, click New > [Operation] and specify the operation details.
- If you want to categorize the Trigger by assigning it to one or more Processes, click the Processes tab and follow the instructions on assigning Triggers to Processes.
INFO: For instructions, see Assigning Workflow Items to Processes.
IMPORTANT: Any workflow operation within a Function, Action, or Trigger can be enabled or disabled. Only enabled operations will be executed. For details, see Disabling and Enabling Operations.
- When done, click OK.