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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / JSON parse - automatin...
Power Automate
Answered

JSON parse - automating the 'generate from sample data' for a schema

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

So I currently have a flow which fetches an excel file from one drive, filters some data. The filtered data is parsed to JSON and then exported as a csv file back to one drive. 

Now while parsing for JSON, I manually paste the output from 'List rows present in a table' after filtering into the 'generate from sample data to get the schema

Is it possible to automate this function? if so, how? and if not, are there any other suggestions?

 

Thanks for your replies in advance!!

Categories:
I have the same question (0)
  • PrasadAthalye Profile Picture
    on at

    In order to parse an output, parse json action would need to know the schema at design time. Why are you looking forward to automate this step?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @PrasadAthalye,

    For the schema required in parse json, I copy-paste the output from the previous step into the 'generate by sample' window manually, so my assumption is, if that step is automated wouldn't the flow be able to parse files with different schemas

  • Verified answer
    PrasadAthalye Profile Picture
    on at

    What you get from other actions is actual data and not schema. Schema is always a design time object against which you parse your data and convert it. What you are asking is to generate schema based on data runtime. It wont work because data may or may not be consistent. So providing design time schema informs parser what to expect for parsing function and to check if data is compliant and if not, it would throw error.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 664

#2
Haque Profile Picture

Haque 460

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard