Skip to content

New-ColumnFilter

SYNOPSIS

Creates a new instance of the ColumnFilter class.

SYNTAX

1
2
New-ColumnFilter [-Property] <String> [[-RawValue] <String>] [-Comparator] <String> [[-Value] <String>]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

New-ColumnFilter acts as a wrapper function for the ColumnFilter class included in the module Easit.GO.Webservice. With the provided input it returns an instance of the ColumnFilter class.

EXAMPLES

EXAMPLE 1

1
2
3
4
5
6
$columnFilters = @()
try {
    $columnFilters += New-ColumnFilter -Property 'Description' -Comparator 'LIKE' -Value 'A description'
} catch {
    throw $_
}

EXAMPLE 2

1
2
3
4
5
6
$columnFilters = @()
try {
    $columnFilters += New-ColumnFilter -Property 'Status' -RawValue '81:1' -Comparator 'IN'
} catch {
    throw $_
}

EXAMPLE 3

1
2
3
4
5
6
$columnFilters = @()
try {
    $columnFilters += New-ColumnFilter -Property 'Status' -RawValue '73:1' -Comparator 'IN' -Value 'Registrered'
} catch {
    throw $_
}

PARAMETERS

-Comparator

What comparator to use and filter with.

1
2
3
4
5
6
7
8
9
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by the Write-Progress cmdlet. The Write-Progress cmdlet creates progress bars that show a command's status.

The ProgressAction parameter takes one of the ActionPreference enumeration values: SilentlyContinue, Stop, Continue, Inquire, Ignore, Suspend, or Break.

1
2
3
4
5
6
7
8
9
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Property

Item property in Easit GO to filter on.

1
2
3
4
5
6
7
8
9
Type: String
Parameter Sets: (All)
Aliases: ColumnName, Name, PropertyName

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RawValue

The raw value (database id) for the value in the item property.

1
2
3
4
5
6
7
8
9
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Value

Value to filter item property by.

1
2
3
4
5
6
7
8
9
Type: String
Parameter Sets: (All)
Aliases: ColumnValue

Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None - You cannot pipe objects to this function

OUTPUTS

ColumnFilter

NOTES