cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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:

michaelBurch_3-1594471125474.png

 

 

 

michaelBurch_4-1594471125477.png

 

michaelBurch_5-1594471125481.png

 

michaelBurch_6-1594471125484.png

 

 

Initialize variable error:

michaelBurch_7-1594471125494.png

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

Michael B

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Visitor

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

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

3 REPLIES 3
Highlighted
Super User
Super User

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

@michaelBurch 

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
https://powerusers.microsoft.com/t5/Get-Help-with-Power-Automate/ct-p/FL_GeneralDiscussions

 

---
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."

Highlighted
Frequent Visitor

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

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

Highlighted
Super User
Super User

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

@michaelBurch 
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.

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,231)