Forum Discussion
Call web API, receive ZIP, decompress multiple JSON files, Load Them
- Anonymous8 years ago
dyingod,
Yes, File.Contents function requires path parameter.
In addition, I haven't found any built-in decompress function that can be used to decompress .zip file. Is there any possibility that your web service return .gzip file? If so, you can use Binary.Decompress to automatically proceed this transformation.
Regards,
Lydia
Hey Lydia!
Thanks so much for this. I had also looked into that link but couldn't manage to do anything with it.
I get stuck here:
let
Source = File.Contents("[Full path to your zip file]"),
Files = UnzipContents(Source)
in
Files
At the [Full path to your zip file], which make me think of a place in my drive but obviously it's not as it's within Power BI so what do I put in there? I tried calling the query with the ZIP by name but that didn't work. I really am a newbie. :(
I think the Custom Column trick sounds amazing and I never thought that possible... but I need to get over this other obstacle first. Can I call on your awesome help again? :)
Thank you!
Rafa
Try changing the line:
Source = File.Contents(...
to:
Source = Web.Contents(...