Skip to content

Get-IvantiServiceRequestTemplateParams

SYNOPSIS

Retrieves service request template parameters from Ivanti ITSM.

SYNTAX

Get-IvantiServiceRequestTemplateParams -serviceRequestTemplateRecID <String> [-paramName <String>]
 [-customFields <String>] [-top <Int32>] [-allFields] [<CommonParameters>]

DESCRIPTION

Retrieves service request template parameters from Ivanti ITSM based on the specified template record ID, parameter name, and other optional criteria. Allows selecting specific fields and limiting the number of results.

EXAMPLES

EXAMPLE 1

Get-ServiceRequestTemplateParams -serviceRequestTemplateRecID 'abc123'

Retrieves the parameters for the service request template with the record ID 'abc123'.

EXAMPLE 2

Get-ServiceRequestTemplateParams -serviceRequestTemplateRecID 'abc123' -paramName 'Param1'

Retrieves the parameter 'Param1' for the service request template with the record ID 'abc123'.

EXAMPLE 3

Get-ServiceRequestTemplateParams -serviceRequestTemplateRecID 'abc123' -customFields 'Field1,Field2' -top 10

Retrieves the top 10 parameters for the service request template with the record ID 'abc123', including custom fields 'Field1' and 'Field2'.

EXAMPLE 4

Get-ServiceRequestTemplateParams -serviceRequestTemplateRecID 'abc123' -allFields

Retrieves all fields for the parameters of the service request template with the record ID 'abc123'.

PARAMETERS

-serviceRequestTemplateRecID

The record ID of the service request template.

Type: String
Parameter Sets: (All)
Aliases: RecID

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

-paramName

The name of the parameter to be retrieved.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
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

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

OUTPUTS

NOTES