Skip to content

Update-IvantiServiceRequest

SYNOPSIS

Update a service request in Ivanti ITSM.

SYNTAX

RecID (Default)

Update-IvantiServiceRequest -recID <String> -body <Hashtable> [<CommonParameters>]

serviceRequestNumber

Update-IvantiServiceRequest -serviceRequestNumber <Int32> -body <Hashtable> [<CommonParameters>]

DESCRIPTION

The `Update-ServiceRequest` function allows you to update a service request in Ivanti ITSM. You can specify the service request using either the service request number or the record ID. The function also accepts a hashtable containing the fields to be updated.

EXAMPLES

EXAMPLE 1

Update-ServiceRequest -serviceRequestNumber 12345 -body @{ 'Status' = 'Completed' }

Updates the service request with the service request number 12345 and sets the status to 'Completed'.

EXAMPLE 2

Update-ServiceRequest -recID 'abc123' -body @{ 'Priority' = 'High' }

Updates the service request with the record ID 'abc123' and sets the priority to 'High'.

PARAMETERS

-serviceRequestNumber

The service request number of the service request to update. This parameter is mandatory when using the 'serviceRequestNumber' parameter set.

Type: Int32
Parameter Sets: serviceRequestNumber
Aliases: SR

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

-recID

The record ID of the service request to update. This parameter is mandatory when using the 'RecID' parameter set.

Type: String
Parameter Sets: RecID
Aliases:

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

-body

A hashtable containing the fields to be updated. This parameter is mandatory.

Type: Hashtable
Parameter Sets: (All)
Aliases:

Required: True
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.

INPUTS

OUTPUTS

NOTES

This function is useful for updating service requests in Ivanti ITSM.

https://help.ivanti.com/ht/help/en_US/ISM/2022/admin/Content/Configure/API/Update-a-Business-Object.htm