Data Providers
Microsoft OneDrive

Download a file

5min

In a you can download a file from a specific location in OneDrive to your mobile device. This is useful when your device is offline, and you want to view the document or file. Use the OneDrive Data Provider with the download method. The file is downloaded to the mobile device's storage.

Download a file from OneDrive
Download a file from OneDrive


Device storage location

OneDrive downloads are stored in the following location depending on the device's operating system.

  • Android - File apps/Internal Storage/Documents
  • iOS - File apps/On My iPhone/Jigx/

Properties

The following properties are required in the YAML to successfully download a file:

  • fileName - Add the file name with the extension, e.g. Invoice.pdf
  • entity - file path in OneDrive
  • tokenType - OAuth token credentials name
  • method: download

Considerations

  • Downloading a file that already exists in the device's storage will overwrite the existing file based on the file name.
  • Downloading large files will impact the storage on the device.
  • A delay or time lag of several minutes could be experienced when files are syncing between the device and OneDrive.

Code Example

The code example below provides an example of a list of invoices in the myfiles directory of OneDrive. To download a file from the list to your mobile device, swipe left and press the Download button.

download-list.jigx
download-file.jigx


See also



Updated 23 Nov 2023
Doc contributor
Did this page help you?
Yes
No