Documentation Center

Managing trigger types with cmdlets

Experience Optimization provides several PowerShell cmdlets for creating and managing trigger types.

Trigger type commands

Experience Optimization provides the following commands for managing trigger types:

CmdletFunction
Get-XoTriggerTypeReturn a list of trigger types

You can return a list of all trigger types that exist in the system or a list of those with the trigger IDs or names you specify.

New-XoTriggerTypeCreate a new trigger type
Remove-XoTriggerTypeRemove an existing trigger type

The trigger type is specified and matched by the trigger ID.

Test-XoTriggerTypeReturn a Boolean indicating whether the specified trigger type exists in Experience Optimization

The trigger type is specified and matched by the trigger ID.

Example: help Set-XoSettings -Detailed

Example

The following illustrates the New-XoTriggerType command being used to create a new trigger type:

PS C:\powershell> New-XoTriggerType -Id decimal_checkboxes -Name "Decimal Checkboxes" 
-BaseType Number -FloatingPoint -Values 10.1, 20.2, 30.3, 40.4, 50.5 -MultiSelect -Verbose
VERBOSE: Adding a new Trigger Type named 'Decimal Checkboxes'...