Hi,
I've developed a flow that calls an API that returns JSON format as below
{
"response": [
{
"displayname": "ABC"
},
{
"displayname": "DEF"
}
]
}
I have tried to set the OnSelect properties of my dropdown list to the following:
ClearCollect(Fetchitem,ParseJSON(GetAzureDevOpsMembers.Run(Assigned_I.Selected.Value).response))
I also tried the following under OnSelect:
Set(Fetchitem,ParseJSON(GetAzureDevOpsMembers.Run("Groupname").response))
and under Item:
Fetchitem
However i'm not getting the results shown. Also a runtime error pops up as Fetchitem is expected to be a string but it returns an array.
Any ideas ?
Hi @haznaz , To return an array to Power Apps you have to use the HTTP Response action, not the respond to Power Apps action. When using the HTTP Response you also need to make sure you have a valid JSON Schema loaded.
But this require premium license. If you do not have premium license, then please check below article:
-----------------------------------------------------------------------------------------------------------------------------
I hope this helps.
Please click Accept as solution ✅ if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍
Thanks,
ANB
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
mmbr1606
275
Super User 2025 Season 1