Notifications
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 255 Super User 2025 Season 2
Romain The Low-Code... 205 Super User 2025 Season 2
S-Venkadesh 101 Moderator