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

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

4 REPLIES 4
mdevaney
Super User
Super User

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

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

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

SheenaTDavis
New Member

Helpful resources

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

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

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.

Top Solution Authors
Users online (5,654)