Microsoft SharePoint Online Rest Connector - Download all files in a folder
I've gotten the Microsoft SharePoint Online Rest Connector connected in our Domo instance and have been succesful pulling in individual file contents using the "Download Item Contents" report option.
However, we have a sharepoint folder where users will drop multiple files, and I need to bring the contents of all of these files into Domo. I'd like to avoid having to set up a connector for each individual file, especially as I do not always know when a new file has been added.
Is there a way to use the Sharepoint connector to download all files in a sharepoint folder, rather than having to point to an individual file?
Comments
-
Hi @mhouston
Unfortunately it appears that their API only supports pulling an individual file and not an entire directory. If you're wanting to programmatically pull all files in the directory you options would likely be either write a script to query all of the files in the folder then call the API individually for each file or possibly write a custom connector to do this for you.
However, the concern is that if an entire directory was able to be uploaded there's no real enforcement that the data structures are the same and then you get into the issue of how to handle the differences when combining them into the same dataset.
Your options are either
- Keep it as is and manually add a new connection for each new file that gets added ensuring the data structures are consistent (single file to a new dataset makes it consistent)
- Write a custom connector or script to read the entire data folder and somehow handle the possible data structure differences when uploading to the same dataset which is a much more complex option.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0 -
could also write a script that generates a connector based on al ist of values in a CSV.
but at that point why not sync Sharepoint with a local folder and then use workbench?
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
Thank you both for your insights. Unfortunately I need some of the sharpeoint metadata associated with the files so just syncing with a local folder and using workbench doesn't provide the information I need. I know the data are correctly formatted because we have a template based process, so Ill explore the use of a script to provide the solution I need.
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 101 SQL DataFlows
- 622 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 748 Beast Mode
- 59 App Studio
- 41 Variables
- 686 Automate
- 176 Apps
- 453 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 396 Distribute
- 113 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 125 Manage
- 122 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 109 Community Announcements
- 4.8K Archive