Skip to content

Get File Attachments ​

Retrieves the files associated with a parent file in Autodesk Vault as either attachments, dependencies, or both.

Purpose ​

Use this task when a workflow needs to know what other files are linked to a given Vault file. This is useful for checking which files are attached to an assembly before publishing, identifying all dependency files that must be downloaded before a local operation, or building a complete picture of a file's relationship tree. The result is available both as a hierarchy and as a flat list, making it easy to loop over associated files in subsequent tasks.

Inputs ​

FieldTypeRequiredDescription
Parent File IdentifierTextYesIdentifies the parent file in Vault. Accepts a Vault path ($/Designs/Assembly.iam), a numeric file ID, or a file name.
Association TypeDropdownNoWhich relationship type to retrieve: Attachment (files attached to the parent), Dependency (files the parent depends on), or All. Defaults to Attachment.
Include All LevelsCheckboxNoWhen enabled, recursively traverses the full association hierarchy. When disabled, only the immediate associations are returned.
Include Hidden FilesCheckboxNoWhen enabled, hidden files are included in the results.

Visibility Rules ​

Include All Levels is only shown when Association Type is set to Dependency or All.

Outputs ​

NameDescription
ParentFileThe resolved parent Vault file object.
HierarchyRootThe root node of the association tree, with nested child nodes representing each level of the hierarchy.
TotalFileCountTotal number of associated files found across all levels.
AssociationTypeThe association type used for this query (Attachment, Dependency, or All).
IncludedAllLevelsBoolean indicating whether recursive traversal was enabled.
FlatFileListAll associated files as a flat array, regardless of hierarchy level.

Tentech