Skip to content

Update-IvantiIncident

SYNOPSIS

Update an incident in Ivanti ITSM.

SYNTAX

RecID (Default)

Update-IvantiIncident -IncidentNumber <String> -recID <String> [-body <Hashtable>] [<CommonParameters>]

IncidentNumber

Update-IvantiIncident -IncidentNumber <String> [-body <Hashtable>] [<CommonParameters>]

DESCRIPTION

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

EXAMPLES

EXAMPLE 1

Update-Incident -IncidentNumber 'INC12345' -body @{ 'Status' = 'Resolved' }

Updates the incident with the incident number 'INC12345' and sets the status to 'Resolved'.

EXAMPLE 2

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

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

PARAMETERS

-IncidentNumber

The incident number of the incident to update. This parameter is mandatory when using the 'IncidentNumber' parameter set.

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

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

-recID

The record ID of the incident 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 optional.

Type: Hashtable
Parameter Sets: (All)
Aliases:

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.

INPUTS

OUTPUTS

NOTES

This function is useful for updating incidents in Ivanti ITSM.

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