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

Community site session details

Session Id : o4X2PSKExpZi5S2QjChSWy
Power Automate - Building Flows
Answered

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

Like (0) ShareShare
ReportReport
Posted on 6 Aug 2021 08:39:05 by

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!!

  • Verified answer
    PrasadAthalye Profile Picture
    on 09 Aug 2021 at 20:04:00
    Re: JSON parse - automating the 'generate from sample data' for a schema

    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.

     

  • Community Power Platform Member Profile Picture
    on 09 Aug 2021 at 04:15:12
    Re: JSON parse - automating the 'generate from sample data' for a schema

    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

  • PrasadAthalye Profile Picture
    on 06 Aug 2021 at 18:40:02
    Re: JSON parse - automating the 'generate from sample data' for a schema

    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?

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete