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 / Copilot Studio / Copilot Studio Parsed ...
Copilot Studio
Unanswered

Copilot Studio Parsed Json request

(1) ShareShare
ReportReport
Posted on by

Hello everyone, I'm a beginner with Copilot Studio and I could use some advice. I'm making an API request and storing the response in the 'SampleJSON' variable. After that, I attempt to access the property 'Topic.SampleJSON.result[0].number' to display this value in the chat. However, I encounter an error stating that it's not possible. How can I correctly reach the last level of this JSON property that looks like this:

 

{

"result": [

                {

               "number": "string",

             "short_description": "string",

             "close_notes": "string"

                 }

          ]

}

 

EudesBarbosa_0-1706218096605.png

 

I have the same question (0)
  • adilei Profile Picture
    Microsoft Employee on at

    Use the PowerFX Index function to access a specific row:

     

    Index(Topic.resultTable.result,1).close_notes

     

  • Expiscornovus Profile Picture
    33,830 Most Valuable Professional on at

    Hi @adilei,

     

    Does the Index function actually work with a record data type? Like @EudesBarbosa mentioned the return data is not a table, but a record.

     

    record_datatype.png

  • adilei Profile Picture
    Microsoft Employee on at

    Thanks for bringing this to my attention! 

     

    OP's payload is an array nested within an object, or in PowerFX, a table nested within a record:

     

     

    {
     "result": [
     {
     "number": "string",
     "short_description": "string",
     "close_notes": "string"
     }
     ]
    }

     

     


    To access a property on the first record of a table nested within a record, you can use the following pattern:

     

     

     

    Index(Topic.myRecord.result,1).close_notes

     

     







     

     

  • Leo_Blue Profile Picture
    7 on at
    Not sure if this code worked for you. It threw an error when I used this code.
     
    Index(Topic.resultTable.result,1).close_notes
     
    It worked fine when I tried this way:
    Index(ParseJSON(Topic.resultTable.result),1).close_notes
     
     

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 594

#2
chiaraalina Profile Picture

chiaraalina 170 Super User 2026 Season 1

#3
deepakmehta13a Profile Picture

deepakmehta13a 118

Last 30 days Overall leaderboard