Get-IvantiLinkedCI
SYNOPSIS
Retrieve linked configuration items (CIs) for a specified business object in Ivanti ITSM.
SYNTAX
servicereq (Default)
incidentNumber
serviceReqNumber
changeNumber
taskNumber
RecID
DESCRIPTION
The `Get-LinkedCI` function allows you to retrieve linked configuration items (CIs) for a specified business object in Ivanti ITSM. You can specify the business object using various parameters such as incident number, service request number, change number, task number, or record ID. The function also allows you to specify custom fields to include in the result and whether to include all fields.
EXAMPLES
EXAMPLE 1
Retrieves linked CIs for the incident with the incident number 12345.
EXAMPLE 2
Retrieves linked CIs for the service request with the service request number 67890.
EXAMPLE 3
Retrieves linked CIs for the change with the change number 54321.
EXAMPLE 4
Retrieves linked CIs for the task with the task number 98765.
EXAMPLE 5
Retrieves linked CIs for the business object with the record ID 'abc123' and type 'incident'.
PARAMETERS
-incidentNumber
The incident number of the business object for which to retrieve linked CIs. This parameter is mandatory when using the 'incidentNumber' parameter set.
Type: Int32
Parameter Sets: incidentNumber
Aliases:
Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-serviceReqNumber
The service request number of the business object for which to retrieve linked CIs. This parameter is mandatory when using the 'serviceReqNumber' parameter set.
Type: Int32
Parameter Sets: serviceReqNumber
Aliases: servicerequestNumber
Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-changeNumber
The change number of the business object for which to retrieve linked CIs. This parameter is mandatory when using the 'changeNumber' parameter set.
Type: Int32
Parameter Sets: changeNumber
Aliases:
Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-taskNumber
The task number of the business object for which to retrieve linked CIs. This parameter is mandatory when using the 'taskNumber' parameter set.
Type: Int32
Parameter Sets: taskNumber
Aliases:
Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-RecID
The record ID of the business object for which to retrieve linked CIs. 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
-objectType
The type of the business object (incident, servicereq, or change). 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
-allFields
A switch to include all fields in the retrieved linked CIs.
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
This function is useful for retrieving linked configuration items (CIs) for various business objects in Ivanti ITSM.
RELATED LINKS
https://docs.microsoft.com/en-us/powershell/scripting/overview