Attachment XML Download
This integration downloads attachments from various modules within the application.
Triggering Events
Documents will appear in the download if they agree with the parameter values provided at run time. Refer to the Parameters section below.
Parameters
The Standard Attachment XML Download requires parameters to run. The parameter indicates object reference to be downloaded. (Example: xxxxES00000123). Only one object ref per download is permitted.
For SOW Responses and SOW Bids, supplier code must also be indicated as parameter in the following format: object_ref~supplier code. (Example: XXXXTQ00003214~SUP1). If the object_ref is only provided, the request is downloaded, but none of the responses are downloaded. When the supplier code is also included, responses from that particular supplier are downloaded.
For Suppliers, the parameter is Supplier~supplier code (Example: Supplier~SUP1).
For Activity Items, the parameter is Activity Item~Work Order reference or SOW reference or Profile Worker reference or Worker reference~Activity Item Code or Activity Item zID (Examples: Activity Item~XXXXWO00003214~Activity Item 1, Activity Item~xxxxTQ00003214~Activity Item 1, Activity Item~XXXXPW00003214~Activity Item 1, Activity Item~XXXXWK00003214~Activity Item 1, Activity Item~XXXXWK00003214~z00000000000000000000123).
The SOWs must be in status Pending Response or Response Pending Approval when the download is initiated from a buyer login. The parameter to indicate Revisions is in the following format: XXXXTQXXXXXXXX~revision#
-
If revision parameter is not provided, attachment(s) from latest SOW revision will be sent.
-
If XXXXTQXXXXXXXX and revision = 0 (Example XXXXTQXXXXXXXX~0) is provided, attachment(s) from the original SOW will be sent.
-
If XXXXTQXXXXXXXX and revision = n (Example XXXXTQXXXXXXXX~n) is provided, attachment(s) from the specified SOW revision will be sent.
-
If XXXXTQXXXXXXXX and revision = [All] (Example XXXXTQXXXXXXXX~[All]) is provided, attachment(s) from all SOW revisions will be sent.
-
If XXXXTQXXXXXXXX and supplier code and revision = 0 is provided, attachment(s) from the original SOW will be sent along with supplier response.
-
If XXXXTQXXXXXXXX and supplier code and revision = n (Example XXXXTQ00000123~ABCD~2) is provided, attachment(s) from the specified SOW revision will be sent along with supplier response.
-
If XXXXTQXXXXXXXX and supplier code and revision = [All] (Example XXXXTQ00000123~ABCD~[ALL]) is provided, attachment(s) from all SOW revisions will be sent along with supplier responses.
For Work Orders, the parameter to indicate Revisions is in the following format: XXXXWOXXXXXXXX~revision#
-
If revision parameter is not provided, attachment(s) from latest work order revision will be sent.
-
If XXXXWOXXXXXXXX and revision = 0 (Example XXXXWOXXXXXXXX~0) is provided, attachment(s) from the original work order will be sent.
-
If XXXXWOXXXXXXXX and revision = n (Example XXXXWOXXXXXXXX~3) is provided, attachment(s) from the specified work order revision will be sent.
-
If revision parameter is not provided, attachment(s) from latest Contract revision will be sent.
-
If revision = 0 (Example ABCDCT12345678~0), attachment(s) from the original Contract will be sent.
-
If revision = n (Example ABCDCT12345678~n), attachment(s) from the specified Contract version will be sent.
-
If revision = [All] (Example ABCDCT12345678~[All]), attachment(s) from all Contract version will be sent.
File Formatting
Assumptions/Tips
-
The maximum number of files depends on file sizes that totals the maximum for that module. If a specific size is not configured, then the limit is defaulted to 5MB.
-
For expense sheets, this connector downloads the attachments added at expense entries as well. For workers, this connector downloads the attachments of activity items as well.
-
Regarding visibility: If you run the download from the supplier, only attachments that are public or private to only suppliers should show. If you run the download from the buyer company, only attachments that are public or private to the buyer should show.
-
The field ‘Include Attachment’ is enabled by default. When this field is disabled, the download does not include any attachments in the XML file for any of the modules supported.
-
When ‘Include Invoice PDF’ is enabled, a PDF is generated and shown in the XML in Base64 code.
-
Attachments deleted on a document from the UI are no longer available for download.
-
Buyers cannot download attachments to workforce records if Allow Buyer to add Workforce flag is set to false.