Update-IvantiBusinessObject
SYNOPSIS
Updates a business object in Ivanti ITSM.
SYNTAX
params
RecID
Update-IvantiBusinessObject -businessObject <String> -RecID <String> -body <Hashtable> [<CommonParameters>]
DESCRIPTION
Updates a business object in Ivanti ITSM by specifying the business object type and record ID or a set of parameters along with the fields to be updated.
EXAMPLES
EXAMPLE 1
Update-BusinessObject -businessObject 'incident' -RecID 'abc123' -body @{ 'Status' = 'Resolved'; 'Owner' = 'JohnDoe' }
Updates the incident with the record ID 'abc123' with the specified details.
EXAMPLE 2
Update-BusinessObject -params @{ 'businessObject' = 'incident'; 'RecID' = 'abc123' } -body @{ 'Status' = 'Resolved'; 'Owner' = 'JohnDoe' }
Updates the incident with the specified parameters and details.
PARAMETERS
-params
A hashtable of parameters to specify the business object to be updated.
Type: Hashtable
Parameter Sets: params
Aliases: Parameters
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-businessObject
The type of the business object to be updated.
Type: String
Parameter Sets: RecID
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RecID
The record ID of the business object to be updated.
Type: String
Parameter Sets: RecID
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-body
A hashtable of fields to be updated in the business object.
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.