Open-SnowRecord¶
SYNOPSIS¶
Opens a ServiceNow record, list, or table in the default browser.
SYNTAX¶
Open-SnowRecord [[-Table] <String>] [-InputObject <PSObject>] [-SysId <String>] [-Number <String>]
[-Query <String>] [-Schema] [-PassThru] [-Force] [-UseNavTo] [-ProgressAction <ActionPreference>] [-WhatIf]
[-Confirm] [<CommonParameters>]
DESCRIPTION¶
Accepts the same targets as Get-SnowLink. Pipeline batches over five records ask for confirmation unless -Force is supplied. On Linux a graphical session and xdg-open are needed.
EXAMPLES¶
EXAMPLE 1¶
Open-SnowRecord -Table incident -Number INC0010001
Jumps straight to an incident from the console.
EXAMPLE 2¶
Get-SnowRecord -Table incident -Query 'active=true^priority=1' | Open-SnowRecord
Opens every active P1 (asks first if more than five).
EXAMPLE 3¶
Open-SnowRecord -Table incident -Query 'active=true^assignment_group.name=Service Desk'
Opens the Service Desk queue as a list.
PARAMETERS¶
-Table¶
The table name.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-InputObject¶
A record from Get-SnowRecord.
Type: PSObject
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-SysId¶
The sys_id of the record.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Number¶
A record number such as INC0010001.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Query¶
Opens a list view filtered by this encoded query.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Schema¶
Opens the table definition.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-PassThru¶
Returns the URLs without opening the browser.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-Force¶
Skips the confirmation for batches over five records.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-UseNavTo¶
Uses the classic frame-wrapped URL.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf¶
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Confirm¶
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction¶
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
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.