Overview
...
Microsoft OneDrive
List files
5 min
often there is a requirement to list files or get one specific file from onedrive and then interact with that file(s), whether for viewing, updating, deleting, or even downloading the file's details are pulled to the device using the local data provider, after which you can work with the file, showing it in a list properties the following properties are required in the yaml entity path in onedrive tokentype oauth token credentials name component there are a number of elements that can be used to display the file(s), for example, component list , component form with a dropdown, or jig list considerations getting or listing files from onedrive does not download the file it just displays the details of the file from the path ( entity ) specified all files in a onedrive directory can be listed and some directories may have many files consider the amount of items you want returned when creating the query for the local data provider 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 list files jigx title list monthly invoices description list all monthly invoices type jig list icon contact header type component jig header options height medium children type component image options source uri https //builder jigx com/assets/images/header jpg \# connection to onedrive files in myfiles directory onfocus type action sync entities options provider data provider onedrive entities \ entity myfiles data tokentype jigx graph oauth \# hold the onedrive file details on local device datasources file data myfiles type datasource sqlite options provider data provider local entities \ myfiles query select id, '$ name' as name from \[myfiles] order by '$ name' desc data =@ctx datasources file data myfiles item type component list item options leftelement element avatar text od title =@ctx current item name actions \ children \ type action go back options title previous see also microsoft onedrive https //docs jigx com/microsoft onedrivecreate a file docid\ f4 yt8ippj06y6urzf3uiupdate/save a file docid\ q15cuvjxr pgmpmoewkirdelete a file docid\ ucwqsf0mj oyqhgk4d18edownload a file docid\ fgdix8 bewcl izg70m a