admin管理员组

文章数量:1128541

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: /

本文标签: How to Pull Folder ID from Autodesk Construction Cloud Using WorkatoStack Overflow