cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Download a single github resource ("folder")

I need to download the files contained in a single public resource folder on github:

 

https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_daily_report...

 

I need a simple 'Recurrence' trigger, one download per day.

 

I can use HTTP GET to execute the download ZIP url, however, that file is too large to automatically extract with Power Automate, and we need to move the uncompressed files into our Sharepoint.

 

I believe there's a method via subversion:

 

https://stackoverflow.com/questions/7106012/download-a-single-folder-or-directory-from-a-github-repo

 

But I don't think PA supports subversion code / requests.

 

Does anyone have a solution for this flow?

1 REPLY 1
JohnAageAnderse
Memorable Member
Memorable Member

Hello @Anonymous 

Instead of thinking about getting a folder, why don't you just take the files, one after each other? The files all has a name pattern that can easily be calculated.

Create your recurrent flow that runs daily.

Have a sharepoint list with just one entry, the date last processed, starting with '01-22-2020' (MM-dd-yyyy), which is the name of the first CSV file.

1) Your flow grabs that date.

2) Then calculates the URL to use and GETs the file (you may have to catch the situation when there is no file for the date).

3) The file is then stored in your sharepoint, a document library.

4) Your flow then calculates the next date to use and stores it in the sharepoint list.

5) Your flow then loops till the date reaches todays date.

6) Your flow ends

 

When your flow next time runs, it will start from the stored date 🙂

Hope this gives you an idea. Kind regards, John

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,602)