Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

How to Download a zipped file from a website using the Download Tool

grodriguez
7 - Meteor

I am trying to download the zipped file at the below link but am having trouble with the regular expression in the RegEx tool. Any suggestions would be greatly appreciated. 

I found a discussion with a similar issue but the link that they were using does not work so I cannot use it as an example to see how they pulled the expression. Attached is the workflow I have so far. 

 

https://www.cms.gov/research-statistics-data-and-systems/statistics-trends-and-reports/mcradvpartden...

 

 

14 REPLIES 14
Felipe_Ribeir0
16 - Nebula

Hi @grodriguez 

 

It is possible, one way is by using this macro. Take a look at it. I need to go for now, but tomorrow i send you the workflow with this macro working.

 

https://community.alteryx.com/t5/Community-Gallery/Unzip-zip-and-yxzp-files/ta-p/1161434

 

Felipe_Ribeir0
16 - Nebula

Hi @grodriguez 

 

See this version, it will download the current month file, unzip it and import the xlsx to the workflow.

 

importfiles.png

 

grodriguez
7 - Meteor

Wow that's awesome! Thank you so much for all your help. If I run this on the server will it require installing something for the unzip tool on the server? 

Felipe_Ribeir0
16 - Nebula

@grodriguez no it should not require any further configuration The server just need to have access to the folders that you are dealing with (OUTPUTPATH).

 

But deploying to server can bring surprises sometimes, so try and be sure.

 

 

anuninan07
7 - Meteor

Does this need a temp location or folder location to download the files?

Labels