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 :
Power Platform Community / Forums / Power Automate / JSON parse - automatin...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on 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!!

Categories:
I have the same question (0)
  • PrasadAthalye Profile Picture
    on at
    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?

  • Community Power Platform Member Profile Picture
    on at
    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

  • Verified answer
    PrasadAthalye Profile Picture
    on at
    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.

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard