Autodesk · Arazzo Workflow
Autodesk Publish a File into a Project Folder
Version 1.0.0
Navigate hub to project to top folders, create a subfolder, and publish a file item into it.
View Spec
View on GitHub
Fortune 10003D ModelingArchitectureBIMCADConstructionDesignDigital TwinsEngineeringManufacturingMedia and EntertainmentSustainabilityArazzoWorkflows
Provider
Workflows
publish-file-into-project-folder
Walk the hub/project/folder tree and publish a new file item.
Resolves the hub by name, resolves the project, takes the first top folder, creates a named subfolder beneath it, creates the item that binds a storage object to that folder, and reads the item back to confirm its tip version.
1
resolveHub
getHubs
Find the hub by name. Everything in Data Management hangs off a hub, and its id is required to reach projects.
2
resolveProject
getHubProjects
Resolve the target project within the hub, filtering by the supplied project id so the flow fails loudly rather than writing into the wrong project.
3
listTopFolders
getProjectTopFolders
List the project's top-level folders. These are the roots the host product exposes (Plans, Project Files, and so on) and are the only valid parents for a first subfolder.
4
createSubFolder
createFolder
Create the destination subfolder beneath the top folder. Data Management speaks JSON:API, so the parent is expressed as a relationship rather than a path.
5
createFileItem
createItem
Create the item that represents the file in the folder, binding it to the storage object holding the bytes. The included array carries the first version of the item.
6
confirmItem
getItem
Read the published item back to confirm it landed in the folder and to capture its display name and tip version as recorded by the service.