Announcements
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"
}
]
Use the PowerFX Index function to access a specific row:
Index(Topic.resultTable.result,1).close_notes
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.
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
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 594
chiaraalina 170 Super User 2026 Season 1
deepakmehta13a 118