Attachment XML Download

This integration downloads attachments from various modules within the application.

Connector Overview

Component

Detail

Company Type

Buyer

MSP Partner

Supplier

Version Type

1.0

Format

XML

Prerequisites

Company Details Setting must be turned on for Integration – Attachment XML Download

User role permission must be turned on for Download Data and Download Data.

Predecessors

  • Credit Debit Memo

  • Expense Sheet

  • Invoice

  • Job Seeker

  • Miscellaneous Invoice

  • Service Confirmation

  • SOW Characteristic (Event, Fee, Management Event, Schedule)

  • SOW Credit Debit Memo

  • SOW Invoice

  • Work Order

  • Worker

  • Workforce

Related Connectors

Attachment XML Upload

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.

For Contracts, the parameter to indicate Revisions will use the following format: XXXXCTXXXXXXXX~revision#
  • 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

Data Dictionary

Field Header Name

Min/Max Occurrences

Value(s)/Format

Description/Use/Field Rules

<?xml version="1.0" encoding="UTF-8" ?>

1/1

 

This group element indicates the start of the entire XML file.

<DocAttachments xmlns="attachmentDownload" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://localhost/schema/InSiteAttachmentDownload.xsd">

1/1

 

Group Element for the downloaded XML file.

<DocumentObject>

1/*

 

Group Element for each object. All values for a particular file attachment(s). This group element indicates the start of the object.

<Module></Module>

1/1

Valid values:

  • Activity Item

  • Consolidated Transaction Invoice

  • Credit Debit Memo Expense Sheet

  • Event

  • Fee

  • Invoice

  • Job Seeker

  • Management Event

  • Miscellaneous Invoice

  • Onboarding Activity

  • Profile Worker

  • Service Confirmation

  • Schedule

  • SOW

  • SOW Bid

  • SOW Bid Response

  • SOW Credit Debit Memo

  • SOW Invoice

  • SOW Work Order

  • SOW Worker

  • Supplier

  • Workforce

  • Worker

  • Work Order

The module for which this attachment will be used.

The following modules apply to Buyers:
  • Activity Item

  • Consolidated Transaction Invoice

  • Decision Form

  • Fee

  • Invoice

  • Job Posting

  • Management Event

  • Contract

  • Profile Worker

  • Service Confirmation

  • Statement of Work

  • Supplier

  • Work Order

  • Worker

  • Workforce

The following modules apply to Suppliers:
  • Consolidated Transaction Invoice

  • Event

  • Fee

  • Management Event

  • Contract

  • Schedule

  • Service Confirmation

  • Workforce

<ObjectRef></ObjectRef>

1/1

Examples:

  • ABCDES00000001

  • ABCDWF00000088

  • ABCDWO00000002

  • ABCDWK00000003

  • SUP1JS00000004

  • ABCDIN00000005

  • ABCDPI00000006

  • ABCDCD00000007

  • ABCDPC00000008

  • ABCDMI00000009

  • ABCDTS00000010

  • ABCDPW00000011

  • ABCDPE00000012

  • ABCDPS00000013

  • ABCDTQ00000014

  • ABCDTU00000015

  • SUP1

  • ABCDSR00000012

SAP Fieldglass Expense Sheet, Work Order, Worker, Job Seeker, Invoice, Profile Worker, SOW/SOW Bid/SOW Bid Response, SOW Invoice, SOW Work Order, SOW Worker, Credit Debit Memo, SOW Credit Debit Memo, Miscellaneous Invoice, Event, Fee, Management Event, Supplier, Schedule, Consolidated Transaction Invoice, and Service Confirmation Object Reference.

<ExternalObjectRef></ExternalObjectRef>

0/1

 

User supplied object reference.

<DetailItemReference></DetailItemReference>

0/1

Example:

Background check

A valid SAP Fieldglass Activity Item code that is in Pending status.

This field is only applicable for the Activity Item module.

<DetailItemZid></DetailItemZid>

0/1

24-character zid of the checklist item association

Alternative identifier for Activity Items (instead of DetailItemReference) to differentiate recurring activity items with same code.

Only applicable to:
  • Profile Worker Checklist

  • Statement of Work

  • Work Order

  • Worker

<Revision></Revision>

0/1

Revision number corresponding to the current Object Ref.

<Attachment>

1/1

 

Group element for attachment information. This group element indicates the start of the attachment file(s) data.

<NonXMLContent>

1/1

Group element for attachment information. This group element indicates the start of the attachment file data.

<TextContent> </TextContent>

1/1

Data element for attachment file in base 64 encoding.

If a parameter is entered that belongs to a valid Contract, then the appropriate value will output here.

<SupportingInformation>

1/1

Group element for attachment file information.

<Visibility> </Visibility> 1/1

Accepted values:

Public

Private

Determines who should have visibility of the attachment.

<RestrictedViewVisibility> </RestrictedViewVisibility>

0/1

Accepted values:

Yes

No

Determines if Restricted View and Approval users can view the attachment within the application.

The company configuration 'Restricted work order view' must be enabled.

Applicable modules include: Work Order and Work Order Revision. If this tag is used for other modules, the system ignores this tag.

<FileName></FileName> 1/1   File name of attachment.
<Description> </Description> 1/1   Description of the attachment.
</SupportingInformation> 1/1   This group element indicates the end of the attachment file information.
</NonXMLContent> 1/1   This group element indicates the end of the attachment file data.

<InvoicePdf>

0/1

This group element indicates the start of the invoice PDF data.

<NonXMLContent>

1/1

This group element indicates the start of the non-XML data for the invoice PDF.

<TextContent> </TextContent> 1/1   Data element for invoice PDF in base 64 encoding.
<SupportingInformation> 1/1   Group element for start of invoice PDF.
<Visibility> </Visibility> 1/1

Accepted values:

Public

Private

Determines who should have visibility of the PDF file.
<FileName></FileName> 1/1   Name of invoice PDF file.
<Description> </Description> 1/1   Description of the invoice PDF file.

</SupportingInformation>

1/1

Group element for end of invoice PDF.

</NonXMLContent>

1/1

This group element indicates the end of the invoice PDF file.

</InvoicePdf>

0/1

This group element indicates the end of the invoice PDF data.

</Attachment> 1/1   This group element indicates the end of the attachment file(s) data.

<ChildObject>

0/1

This group element indicates start of child objects for worker or work order revision (ex. activity items or expense sheets).

<Module>

0/1

Accepted values are:

Onboarding Activity

Milestone

Offboarding Activity

Indicates module of child object for worker.

<ChildObjectCode>

0/1

Indicates code pertaining to child object (ex.expense code or activity code).

</ChildObject>

0/1

This group element indicates the end of the child object.

</DocumentObject> 1/1   This group element indicates the end of the object.
</DocAttachments> 1/1   This group element indicates the end of the entire XML file.

Unique Identifier

  • Object Reference

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.