Microsoft OneDrive
Microsoft OneDrive connects you to all your files by storing and protecting your files, sharing them with others, and getting to them from all your devices. Jigx app solutions integrate with OneDrive allowing you to interact with your existing files or add new files. No files are stored in the Jigx cloud as they are routed to OneDrive.
Authorization requirements
A Graph OAuth token is required for a solution to integrate with OneDrive. Set the Graph OAuth token in the Credentials tab in Jigx Management. The Graph OAuth token must have the following permissions:
Files.ReadWrite.All (My Files)
Sites.ReadWrite.All (Shared Folders)
The Shared folder operations rely on permissions granted by the person who shared the folder.
Integration support includes:
Folder sync - syncs metadata and not file contents
Location paths - shared and my files (root)
Methods - create, update, save, delete, and download
Download to documents folder (private to Jigx app) - depends on the device's operating system. See device storage location for the exact location
Specifying the file path
When working with the OneDrive data provider use entity to specify the file path, for example, entity: myfiles/Finance/Invoices. The specified file path with the folders must already exist in OneDrive.
There are two supported base entities myfiles and shared.
entity: myfiles, andmyfileswith additional paths e.g.entity: myfiles/Finance/Invoicesentity: shared/path, asharedentity always requires a path e.g.entity: shared/HR/Global/Forms
Supported methods:
Save - Using the
method: savewill create a new file if the filename does not exist, otherwise, the save will function as an update method.
Properties:
file- reference the physical filefileName- add the file name with the extension, e.g. Invoice.pdftokenType- OAuth token credentials namemethod- the CRUD method to use
Examples and code snippets
The following examples with code snippets are provided
Last updated
Was this helpful?