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 / Extracting data from j...
Power Automate
Unanswered

Extracting data from json with conditions

(0) ShareShare
ReportReport
Posted on by 2 Moderator

Hello,

 

I would like to extract data from a json object that I get from a source that uses xapi.

I am interested in the test results for each task. The following json object contains one task called "Kaufvertrag". The score reached was 3.

 

 

 

 

 

I got the score out with this code

 

outputs('Parse_JSON')?['body']?['xapi'][6]?['result']?['score']?['raw']

 

 

I cannot be sure that the result will be in the sixth element of ['xapi'] and in future I want to get out the results of more than one task and write the data into a table with a column for each task.

 

My end goal is to get the 

Name and the score of all the tasks that were "answered".

 

I don't know if we could maybe create a new array of objects that contain the name and score of all the tasks that were done. Then I could match the array to the database that I need to enter into.

 

I'm open to any and all solutions.

Thank you guys!   

 

 

 

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @schwibach ,

     

    Have you tried to create the array? Since you mentioned that you will need to get all items from the xapi json and filter the answered tasks, I think this will be the exact way to achieve that goal.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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 957

#2
Valantis Profile Picture

Valantis 847

#3
Haque Profile Picture

Haque 609

Last 30 days Overall leaderboard