Skip to main content
6-Contributor
Oct 29, 2026 8:42 AM UTC
Solved

Delivery attachments api

Hi all,

i am setting up a workflow, intended to be used for package routing that generates Part BOM xml files, creates a delivery and then attaches the xml files as delivery attachments. I have a hard time figuring out if there is a supported api that will enable attaching the generated xml files in the delivery. So far, i have only managed adding the files as package attachments.
Any ideas?

    6-Contributor
    Oct 29, 2026 11:24 AM UTC

    i figured it out. For anyone interested the Windchill customization guide contains the following information: 
    The IncludedContentRoles property controls which types of content files associated with a package object are added to an exported zip file (created using the “Zip for Delivery” action). Content files associated to a package by the WP_ EXP_SECONDARY content role are always added, regardless of the values given for this property.

    So using the WP_ EXP_SECONDARY content role did the trick.

    3 replies

    18-Opal
    Oct 29, 2026 9:39 AM UTC

    Hi ​@SS_14534388,

    Which API are you using to attach the attachments?

    Translate
    6-Contributor
    Oct 29, 2026 10:15 AM UTC

    The AbstractWorkPackage is updated by the ContentServerHelper class (wt.content.ContentServerHelper.service.updateContent) which adds the files as secondary content.

    Translate
    SS_145343886-ContributorAuthorAnswer
    6-Contributor
    Oct 29, 2026 11:24 AM UTC

    i figured it out. For anyone interested the Windchill customization guide contains the following information: 
    The IncludedContentRoles property controls which types of content files associated with a package object are added to an exported zip file (created using the “Zip for Delivery” action). Content files associated to a package by the WP_ EXP_SECONDARY content role are always added, regardless of the values given for this property.

    So using the WP_ EXP_SECONDARY content role did the trick.

    Translate