Get-VaultChangeOrderAssociations

Returns a collection of Change Order associations.

Syntax

1
Get-VaultChangeOrderAssociations -Number <String> -Type <ChangeOrderAssocType> [<CommonParameters>]

Parameters

Type

Name

Description

Optional

String

Number

Number of the Change Order

no

ChangeOrderAssocType

Type

Specifies which association type is retrieved

no

ChangeOrderAssocType

Name

Description

ItemRecords

Get the item record associations

FileRecords

Get the file record associations

Return type

Item[] / File[] ← on success
empty ← on failure

Remarks

The Cmdlet returns the exact version of the associations.

Examples

Get a Change Orders FileRecord associations

1
$files = Get-VaultChangeOrderAssociations -Number "ECO-100001" -Type FileRecords

Display all Item- and File-Record associations of a Change Order in console

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
$allAssocs = @( Get-VaultChangeOrderAssociations -Number "ECO-100001" -Type FileRecords; Get-VaultChangeOrderAssociations -Number "ECO-100001" -Type ItemRecords)
$allAssocs | Format-Table Id, _EntityTypeID, Name, Revision, State

<#
Id  _EntityTypeID  Name          Revision  State
--- -------------- ------------- --------- --------
15  FILE           Valve.ipt     2         Released
16  FILE           Pad_Lock.iam  2         Released
22  ITEM           1000002       1         Released
#>