Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Trying to parse JSON data to Excel in a Flow. Unable to get past the Initialize variable

Hi all,

Here is my challenge.  As a preface every message I submit, I’m new to the PowerPlatform arena and far from a developer in any sense.  So I apologize for the remedial question.  Here is my use case and challenge – Use case:  We are being asked to create an app that can call the YouTube API and return specific information for review.  The challenge I currently having is on the Flow; I’m able to pass the data from the HTTP REST API invocation to a Response.  The issue now is on parsing this data into an Excel table.  I have searched for a method and have been able to derive at:

  • PowerApps trigger
  • HTTPS REST API invoke
  • Response (JSON Schema)
  • Initialize variable (This is where I’m stuck)
  • Apply to each
    • Parse JSON
    • Add rows to Excel

Where I am stuck is passing the data from the Response to the Initialize variable to the Parse JSON.  I’ve been able to directly add Array values directly to the Initialize variable to kind of ‘synthesize’ the process successfully, but I need to be able to these come from the Response above.  If I remove the manually inserted data from the Initialize variable Value area and add Dynamic content from the Body of the HTTP REST API invoke I get an error on test:  The variable 'Data' of type 'Array' cannot be initialized or updated with value ‘ {the json string of data}’ of type 'Object'. The variable 'Data' only supports values of types 'Array'.

Here is the visual details:












Initialize variable error:


Any guidance or advice would be greatly appreciated and thank you in advance

Michael B



Accepted Solutions

Thank you @mdevaney for the course correction.  I will close this thread down and post in Power Automate.  Thank you again!

View solution in original post

Super User
Super User


I know the inputs are coming from PowerApps but what you really need is a Flow expert.  You'll probably get a better response to this question in the Power Automate Community instead.

Link to Power Automate Community


Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Thank you @mdevaney for the course correction.  I will close this thread down and post in Power Automate.  Thank you again!

No problem.  Just wanted to offer you the best avenue for a solution.  Keep in mind, the weekend is a little slower on the forums too.


Best of luck.

New Member

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,962)