Get-IvantiServiceRequestParams
SYNOPSIS
Retrieves service request parameters from Ivanti ITSM.
SYNTAX
RecID (Default)
Get-IvantiServiceRequestParams -serviceRequestRecID <String> [-customFields <String>] [-top <Int32>]
[-allFields] [<CommonParameters>]
serviceRequestNumber
Get-IvantiServiceRequestParams -serviceRequestNumber <Int32> [-customFields <String>] [-top <Int32>]
[-allFields] [<CommonParameters>]
DESCRIPTION
Retrieves service request parameters from Ivanti ITSM based on specified parameters such as service request number, record ID, custom fields, and other optional criteria. Allows selecting specific fields and limiting the number of results.
EXAMPLES
EXAMPLE 1
Retrieves the parameters for the service request with the number 12345.
EXAMPLE 2
Retrieves the parameters for the service request with the record ID 'abc123'.
EXAMPLE 3
Retrieves the top 10 parameters for the service request with the number 12345, including custom fields 'Field1' and 'Field2'.
EXAMPLE 4
Retrieves all fields for the parameters of the service request with the record ID 'abc123'.
PARAMETERS
-serviceRequestNumber
The service request number to retrieve parameters for.
Type: Int32
Parameter Sets: serviceRequestNumber
Aliases: SR
Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-serviceRequestRecID
The record ID of the service request to retrieve parameters for.
Type: String
Parameter Sets: RecID
Aliases: RecID
Required: True
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.