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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Answered

Json Parse Schema

(0) ShareShare
ReportReport
Posted on by 5

I am trying to parse data from my API into Flow, however i cannot figure out how to parse a list of objects. I want the end result be that for each item in the list, i can send an email about it.

 

Data given by API:

 

{
 "item1" : {
 "category" : "1",
 "name" : "my name",
 "data" : "my data"
 },
 "item2" : {
 "category" : "2",
 "name" : "my name",
 "data" : "my data"
 }.........
}

 

payload given by JSON parser:

 

{
 "type": "object",
 "properties": {
 "item1": {
 "type": "object",
 "properties": {
 "category": {
 "type": "string"
 },
 "name": {
 "type": "string"
 },
 "data": {
 "type": "string"
 }
 }
 },
 "item2": {
 "type": "object",
 "properties": {
 "category": {
 "type": "string"
 },
 "name": {
 "type": "string"
 },
 "data": {
 "type": "string"
 }
 }
 }
 }
}

how to i set the parser to understand there may be diffrent items in the list?

 

Categories:
I have the same question (0)
  • gamoraes Profile Picture
    1,040 on at

    Hi @jhenry

     

    What you need to do after parse? i really recommend you to use the expression json() to parse your text in this case.

     

    If you can explain a little more for us your case will be great.

     

    Hope have helped,

     

    Gustavo Moraes

  • jhenry Profile Picture
    5 on at

    hi @gamoraes,

     

    For each Item (item1,item2,item3.....) i want to get its name and email it someone. I will use the json() to parse the body to json, but i still need to parse the data correctly since it is not a finite amount of information.

  • Verified answer
    v-micsh-msft Profile Picture
    on at

    Hi @jhenry,

     

    Take a look at the parse JSON Action:

    Parse JSON messages

    Then you should be able to manage the items returned by the Parse JSON Action.

     

    Regards,

    Michael

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard