Get-IvantiServiceRequestTemplate
SYNOPSIS
Retrieves service request templates from Ivanti ITSM.
SYNTAX
RecID (Default)
Get-IvantiServiceRequestTemplate -recID <String> [-customFields <String>] [-top <Int32>] [-allFields]
[-withParams] [<CommonParameters>]
serviceRequestTemplate
Get-IvantiServiceRequestTemplate -serviceRequestTemplate <String> [-status <String>] [-customFields <String>]
[-top <Int32>] [-allFields] [-withParams] [<CommonParameters>]
Filter
Get-IvantiServiceRequestTemplate -filter <String> [-customFields <String>] [-top <Int32>] [-allFields]
[-withParams] [<CommonParameters>]
Search
Get-IvantiServiceRequestTemplate -search <String> [-status <String>] [-customFields <String>] [-top <Int32>]
[-allFields] [-withParams] [<CommonParameters>]
DESCRIPTION
Retrieves service request templates from Ivanti ITSM based on specified parameters such as template name, record ID, filter, or search criteria. Allows selecting specific fields and including associated parameters.
EXAMPLES
EXAMPLE 1
Retrieves the 'Standard Request' service request template.
EXAMPLE 2
Retrieves the service request template with the record ID 'abc123'.
EXAMPLE 3
Retrieves the service request templates with the specified filter.
EXAMPLE 4
Retrieves the service request template with the search criteria 'RequestTemplate123' and returns all fields.
PARAMETERS
-serviceRequestTemplate
The name of the service request template to be retrieved.
Type: String
Parameter Sets: serviceRequestTemplate
Aliases: SRTemplate
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-recID
The record ID of the service request template to be retrieved.
Type: String
Parameter Sets: RecID
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-filter
The filter criteria to find the service request template to be retrieved.
Type: String
Parameter Sets: Filter
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-search
The search criteria to find the service request template to be retrieved.
Type: String
Parameter Sets: Search
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-status
The status of the service request template. Default is 'Published (Automatic)'.
Type: String
Parameter Sets: serviceRequestTemplate, Search
Aliases:
Required: False
Position: Named
Default value: Published (Automatic)
Accept pipeline input: False
Accept wildcard characters: False
-customFields
A comma-separated list of custom fields to be included in the result.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-top
The maximum number of results to return.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-allFields
Switch to indicate if all fields should be returned.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-withParams
Switch to indicate if associated parameters should be included in the result.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
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.