UpdateItemFileAssociations Method
Updates which files are associated with the specified Item Revision
Required Permissions
ItemEditSyntax
public Item UpdateItemFileAssociations(
System.long itemRevId,
System.long primary,
System.bool isPrimarySubComp,
System.long[] secondary,
System.long[] stdComp,
System.long[] secSubComp,
System.long[] tertLinks
)Public Function UpdateItemFileAssociations( _
ByVal itemRevId As System.Long, _
ByVal primary As System.Long, _
ByVal isPrimarySubComp As System.Boolean, _
ByVal secondary() As System.Long, _
ByVal stdComp() As System.Long, _
ByVal secSubComp() As System.Long, _
ByVal tertLinks() As System.Long _
) As ItemParameters
| Name | Description |
|---|---|
| itemRevId | The item revision Id of the item to update |
| primary | |
| isPrimarySubComp | |
| secondary | An array of IDs of the secondary Vault Files. Pass null to specify no secondary files. |
| stdComp | An array of IDs of the secondary Vault Files. Pass null to specify no secondary files. |
| secSubComp | An array of IDs to the standard components. Pass null to specify no standard components. |
| tertLinks | An array of IDs to the standard components. Pass null to specify no standard components. |
Return Value
An editable Item containing the changes. Call a commit function, such as UpdateAndCommitItems, to finalize the changes.
Remarks
Item must be already locked (in edit mode) by this user in order to call this method