How to Pull Folder ID from Autodesk Construction Cloud Using Workato - Stack Overflow

admin2025-04-28  2

In the Cost Management section of an ACC project, you can create contracts and change orders. In each contract/change order, you can attach documents and merge them into one document packet. I then use Workato to send the document packet from ACC to DocuSign.

Right now I am using BIM 360 API to move the document packet from ACC to DocuSign. I want to use the Autodesk Creative Cloud API instead. My issue is that I need the folder ID for the Documents Section of the contract/change order. I am able to find the Attachments Section of the contract/change order but this is different than the Documents Section.

My API Call: /$ProjectID$/document-packages

Request URL Parameters:

  • Association ID: $CostID$ (The contract/change order id)
  • Association Type: "Contract" OR "FormInstance"
  • Include: "documentPackageItems"

Results: Note how "Folder ID" is null in the Results section

{
    "body": {
        "results": [
            {
                "errorInfo": null,
                "id": "4f8bf150-9eb3-11ee-8817-ad24fc4bc9e0",
                "containerId": "36ee7feb-6dfe-40fc-b40c-5aa5674c8457",
                "associationId": "01f3921f-b1c3-428b-9449-6bea0b03704c",
                "associationType": "Contract",
                "formDefinitionType": null,
                "name": "18289-090-test",
                "recipientId": null,
                "fileFormat": "pdf",
                "urn": "urn:adsk.wipprod:fs.file:vf.QmhoM4GnSUq7VhL8eYU_2w?version=2",
                "status": "Complete",
                "jobId": "254037",
                "needRemerge": false,
                "creatorId": "2MXJTWUDJTGE4VVR",
                "changedBy": "N2X2S8WAJCARF42Y",
                "createdAt": "2023-12-19T21:12:26.597000+00:00",
                "updatedAt": "2024-12-20T18:32:48.876000+00:00",
                "items": [
                    {
                        "id": "72258caa-2074-4445-82e0-4f3d53bf5863",
                        "containerId": "36ee7feb-6dfe-40fc-b40c-5aa5674c8457",
                        "documentPackageId": "4f8bf150-9eb3-11ee-8817-ad24fc4bc9e0",
                        "name": "Danis WO Template.docx",
                        "type": "DocsFile",
                        "position": 0,
                        "sourceFileName": "Danis WO Template.docx",
                        "sourceId": "06d2c401-90ff-4e23-a44c-deca5afc9c8b",
                        "copyInfo": null,
                        "creatorId": "N2X2S8WAJCARF42Y",
                        "changedBy": "N2X2S8WAJCARF42Y",
                        "createdAt": "2024-12-20T18:15:11.926000+00:00",
                        "updatedAt": "2024-12-20T18:15:16.042000+00:00",
                        "urn": "urn:adsk.wipprod:fs.file:vf.TOcVFTE6SmWyMCi74gZ--A?version=1",
                        "pdfOssUrn": "urn:adsk.objects:os.object:wip.dm.prod/b3a63032-969c-4180-860b-850fa2f116e7.pdf",
                        "errorInfo": null,
                        "status": "Complete",
                        "docxUrn": null,
                        "pdfUrn": null,
                        "templateId": null,
                        "folderId": null,
                        "attachmentType": "DocsFile",
                        "referencedBy": []
                    },
                    {
                        "id": "4d02ec55-0e3f-427f-ad31-f8320091d7c1",
                        "containerId": "36ee7feb-6dfe-40fc-b40c-5aa5674c8457",
                        "documentPackageId": "4f8bf150-9eb3-11ee-8817-ad24fc4bc9e0",
                        "name": "1873 MMH - ACC User Add Request.xlsx",
                        "type": "DocsFile",
                        "position": 1,
                        "sourceFileName": "1873 MMH - ACC User Add Request.xlsx",
                        "sourceId": "0e0ccba7-a4f5-45f9-b83a-0ea6157b8f4a",
                        "copyInfo": null,
                        "creatorId": "N2X2S8WAJCARF42Y",
                        "changedBy": "N2X2S8WAJCARF42Y",
                        "createdAt": "2024-12-20T18:15:11.926000+00:00",
                        "updatedAt": "2024-12-20T18:15:15.977000+00:00",
                        "urn": "urn:adsk.wipprod:fs.file:vf.cAJ6TGq6QMeOfv1oN_zpmQ?version=1",
                        "pdfOssUrn": "urn:adsk.objects:os.object:wip.dm.prod/90483201-a275-49e9-a93d-78d17a843e86.pdf",
                        "errorInfo": null,
                        "status": "Complete",
                        "docxUrn": null,
                        "pdfUrn": null,
                        "templateId": null,
                        "folderId": null,
                        "attachmentType": "DocsFile",
                        "referencedBy": []
                    }
                ]
            }
        ],
        "pagination": {
            "limit": 100,
            "offset": 0
        }
    }
}

Link to Autodesk Creative Cloud API: /

In the Cost Management section of an ACC project, you can create contracts and change orders. In each contract/change order, you can attach documents and merge them into one document packet. I then use Workato to send the document packet from ACC to DocuSign.

Right now I am using BIM 360 API to move the document packet from ACC to DocuSign. I want to use the Autodesk Creative Cloud API instead. My issue is that I need the folder ID for the Documents Section of the contract/change order. I am able to find the Attachments Section of the contract/change order but this is different than the Documents Section.

My API Call: https://developer.api.autodesk.com/cost/v1/containers/$ProjectID$/document-packages

Request URL Parameters:

  • Association ID: $CostID$ (The contract/change order id)
  • Association Type: "Contract" OR "FormInstance"
  • Include: "documentPackageItems"

Results: Note how "Folder ID" is null in the Results section

{
    "body": {
        "results": [
            {
                "errorInfo": null,
                "id": "4f8bf150-9eb3-11ee-8817-ad24fc4bc9e0",
                "containerId": "36ee7feb-6dfe-40fc-b40c-5aa5674c8457",
                "associationId": "01f3921f-b1c3-428b-9449-6bea0b03704c",
                "associationType": "Contract",
                "formDefinitionType": null,
                "name": "18289-090-test",
                "recipientId": null,
                "fileFormat": "pdf",
                "urn": "urn:adsk.wipprod:fs.file:vf.QmhoM4GnSUq7VhL8eYU_2w?version=2",
                "status": "Complete",
                "jobId": "254037",
                "needRemerge": false,
                "creatorId": "2MXJTWUDJTGE4VVR",
                "changedBy": "N2X2S8WAJCARF42Y",
                "createdAt": "2023-12-19T21:12:26.597000+00:00",
                "updatedAt": "2024-12-20T18:32:48.876000+00:00",
                "items": [
                    {
                        "id": "72258caa-2074-4445-82e0-4f3d53bf5863",
                        "containerId": "36ee7feb-6dfe-40fc-b40c-5aa5674c8457",
                        "documentPackageId": "4f8bf150-9eb3-11ee-8817-ad24fc4bc9e0",
                        "name": "Danis WO Template.docx",
                        "type": "DocsFile",
                        "position": 0,
                        "sourceFileName": "Danis WO Template.docx",
                        "sourceId": "06d2c401-90ff-4e23-a44c-deca5afc9c8b",
                        "copyInfo": null,
                        "creatorId": "N2X2S8WAJCARF42Y",
                        "changedBy": "N2X2S8WAJCARF42Y",
                        "createdAt": "2024-12-20T18:15:11.926000+00:00",
                        "updatedAt": "2024-12-20T18:15:16.042000+00:00",
                        "urn": "urn:adsk.wipprod:fs.file:vf.TOcVFTE6SmWyMCi74gZ--A?version=1",
                        "pdfOssUrn": "urn:adsk.objects:os.object:wip.dm.prod/b3a63032-969c-4180-860b-850fa2f116e7.pdf",
                        "errorInfo": null,
                        "status": "Complete",
                        "docxUrn": null,
                        "pdfUrn": null,
                        "templateId": null,
                        "folderId": null,
                        "attachmentType": "DocsFile",
                        "referencedBy": []
                    },
                    {
                        "id": "4d02ec55-0e3f-427f-ad31-f8320091d7c1",
                        "containerId": "36ee7feb-6dfe-40fc-b40c-5aa5674c8457",
                        "documentPackageId": "4f8bf150-9eb3-11ee-8817-ad24fc4bc9e0",
                        "name": "1873 MMH - ACC User Add Request.xlsx",
                        "type": "DocsFile",
                        "position": 1,
                        "sourceFileName": "1873 MMH - ACC User Add Request.xlsx",
                        "sourceId": "0e0ccba7-a4f5-45f9-b83a-0ea6157b8f4a",
                        "copyInfo": null,
                        "creatorId": "N2X2S8WAJCARF42Y",
                        "changedBy": "N2X2S8WAJCARF42Y",
                        "createdAt": "2024-12-20T18:15:11.926000+00:00",
                        "updatedAt": "2024-12-20T18:15:15.977000+00:00",
                        "urn": "urn:adsk.wipprod:fs.file:vf.cAJ6TGq6QMeOfv1oN_zpmQ?version=1",
                        "pdfOssUrn": "urn:adsk.objects:os.object:wip.dm.prod/90483201-a275-49e9-a93d-78d17a843e86.pdf",
                        "errorInfo": null,
                        "status": "Complete",
                        "docxUrn": null,
                        "pdfUrn": null,
                        "templateId": null,
                        "folderId": null,
                        "attachmentType": "DocsFile",
                        "referencedBy": []
                    }
                ]
            }
        ],
        "pagination": {
            "limit": 100,
            "offset": 0
        }
    }
}

Link to Autodesk Creative Cloud API: https://aps.autodesk.com/en/docs/acc/v1/reference/http/cost-documents-GET/

Share Improve this question edited Jan 8 at 13:49 Adriaan 18.2k7 gold badges44 silver badges86 bronze badges asked Jan 8 at 13:47 Kelli PorterKelli Porter 11 bronze badge 1
  • Please read tags before applying them to your question. api starts with a big "DO NOT USE" and asc appears to be something wholly different than Autodesk forge. Don't abuse tags. – Adriaan Commented Jan 8 at 13:50
Add a comment  | 

1 Answer 1

Reset to default 0

To get the folders based on the containerId, you will need to run the API found at the URL below to get the top folders and use the same to get sub folders.

Top Folder API - https://aps.autodesk.com/en/docs/data/v2/reference/http/hubs-hub_id-projects-project_id-topFolders-GET/

Sub Folders API - https://aps.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-folders-folder_id-GET/

Note that containerId is same as the project id without the b.

转载请注明原文地址:http://anycun.com/QandA/1745852653a91239.html