Xero Files Endpoint: DownloadFile

Overview

The Xero DownloadFile endpoint provides means to download the file from Xero. It is NOT a function that can be used as an OData Feed within Power Query.

It is a function that accepts a series of parameters.


Parameters

The DownloadFile is a function that accepts the following parameters.

DataFile
A textfield that specified the data file for which to retrieve the list of files.
This field is only included when using a Consolidation Odata Feed.
This field is mandatory.
FileId
A guid field that specifies the file id for which to download the file.
This field is mandatory.
FileName
A text field that specifies the file name when downloading the file.
This field is optional. When omitted, the file will be named as per the FileId field.


Fields

This function is not compatible with Odata and cannot be used within a Power Query.


Xero API

For a detailed run through of the endpoint, you can see the Xero API.


Related Fields

DataFile


Related Endpoints

GetFileAssociations
GetFileDetails
GetFileURL


Related Topics

Xero Files Models
Xero Files Endpoints