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 / Array - Object and Arr...
Power Automate
Unanswered

Array - Object and Array - extract the Array value

(0) ShareShare
ReportReport
Posted on by

I have managed to extract from a larger array the following:

 

 

[
 {
 "Question": "Question1",
 "Answer": [
 "Answer1"
 ]
 },
 {
 "Question": "Question2",
 "Answer": [
 "Answer2"
 ]
 },
 {
 "Question": "Question3",
 "Answer": [
 "Question4"
 ]
 },
 {
 "Question": "Feedback:",
 "Answer": null
 },
 {
 "Question": "Question4",
 "Answer": [
 "Answer4"
 ]
 },
 {
 "Question": "Feedback:",
 "Answer": null
 }
 ]

 

 

 

I am somewhat struggling with now extracting the Answer, which is still in its own array. 

The end objective is to create a document\pdf or excel table with the Question and Answers? 

 

I can never seem to achieve getting an array to a point where I can use each value?

Please could someone assist me. 

 

thanks

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

    Hi @LukePWilkins ,

    I tried below

    1. Initialize variable with type Array

    Achavan_1-1652161820884.png

     

    2. Use the Parse json step

    Achavan_2-1652161833547.png

     

    3. Read json/array

    Achavan_3-1652161849914.png

     

    below is the image of what I tried

    Achavan_0-1652161792298.png

     

    Output -

    Achavan_4-1652161880361.png

     I have read the questions, similarly we can read the answers

  • LW-28112008-0 Profile Picture
    on at

    Hello @Achavan, thank you for taking the time to reply.

    I have made progress off of your suggestion! How are you handling where the Answer could be NULL and not of type array, and where it could be of type array.

     

    This payload as an example

    {
     "Question": "Feedback:",
     "Answer": null
     },
     {
     "Question": "Question4",
     "Answer": [
     "Answer4"
     ]
     }

     

    the schema is either Answer is of type Array or Null. Can the schema be set to accept either type?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 247 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 164 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 138 Super User 2026 Season 2

Last 30 days Overall leaderboard