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 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
    on at

    Use the PowerFX Index function to access a specific row:

     

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

     

  • Expiscornovus Profile Picture
    33,189 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
    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

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 > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 255 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 205 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard