web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / JSON Download Url to CSV
Power Automate
Answered

JSON Download Url to CSV

(0) ShareShare
ReportReport
Posted on by

Hi guys,

 

I'm a total noob when it comes to Power Automate. But, I need to create a flow to pull API data daily. I was able to setup 2 HTTP requests (Post & GET) and the Parse that information to get a download_url but this is where I am stuck.

ajbogle_0-1667240917119.png

 

The last Parse JSON 2 contains the following object/string. I need to either download the "download_url" or parse out the data and upload it to OneDrive or google sheets.

ajbogle_1-1667240956597.png

 

 

 

 

 

Categories:
I have the same question (0)
  • schwibach Profile Picture
    2 Moderator on at

    body('HTTP')?['download_url'] is what you want to put in the expression.

  • Community Power Platform Member Profile Picture
    on at

    @schwibach  - What step would I use that after the Parse JSON?

  • schwibach Profile Picture
    2 Moderator on at

    you can put this in a compose action instead of the Parse_Json action.

     

    Parse Json only helps you reference dynamic content without having to write out the code each time.

    This: body('HTTP')?['download_url'] already is the code.

  • Community Power Platform Member Profile Picture
    on at

    Ok, I'm not actually following. Sorry, I'm very new to PA.

     

    The first HTTP request is a POST request that returns an ID. That ID gets parsed out to run a second HTTP GET request which then provides a download_url.

     

    I've added a compose set with the body('HTTP')?['download_url'] expression and get the following:

    ajbogle_0-1667244008421.png

     

    I click to download and nothing happens. 

  • schwibach Profile Picture
    2 Moderator on at

    can you show me the outputs of the HTTP action?

  • Community Power Platform Member Profile Picture
    on at

    HTTP (1):

    ajbogle_0-1667244206929.png

    HTTP (2)

    ajbogle_1-1667244226101.png

     

     

  • schwibach Profile Picture
    2 Moderator on at

    So, it's the second HTTP action

     

    Try putting this expression in a compose action after the second HTTP action.

     
    body('HTTP_2')?['download_url']

  • Community Power Platform Member Profile Picture
    on at

    Looks like it worked but still not sure on final steps?

    ajbogle_0-1667244708875.png

     

  • schwibach Profile Picture
    2 Moderator on at

    Well, what do you want to do with that URL, it's now available to you for everything you want.

  • Community Power Platform Member Profile Picture
    on at

    Ultimately I want to connect to the data source through PowerBI. Once I can get a connection, I want to schedule the flow to update once per day. If it's possible to either access it directly via Power Automate or download the csv file to OneDrive, either would work. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard