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 / Power Apps / Using JSON array/objec...
Power Apps
Unanswered

Using JSON array/objects in control Items property

(0) ShareShare
ReportReport
Posted on by

Hello

 

I am trying to use the following data structure in the Items property of a drop down control.  When i have a single object, it works, when i have multiple objects it does not.

 

This works fine. 

{
 Role: "Exchange Administrator",
 Id: "nnnnn",
 Description: "Users with this role have global permissions within Microsoft Exchange Online."
}

 

This does not.

{
 "Roles":[
 {
 "Role":"role 1",
 "Id":"nnn",
 "Description":"something."
 },
 {
 "Role":"role 2",
 "Id":"nnn",
 "Description":"something else."
 }
 ]
}

 

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @Anonymous ,

    Do you want to connect the Dropdown control to a JSON String array?

     

    Based on the data structure that you mentioned, it is a JSON String array rather than a Object Table supported in PowerApps. If you want to use JSON String value as data source within the Dropdown control directly, I afraid that there is no way to achieve your needs in PowerApps currently.

     

    As an alternative solution, you could consider set the Items property of the Dropdown control to following formula:

    Table(
     {
     Role:"role 1",
     Id:"nnn",
     Description:"something."
     },
     {
     Role:"role 2",
     Id:"nnn",
     Description:"something else."
     }
    )

     

    Best regards,

  • Community Power Platform Member Profile Picture
    on at

    Amazing, that works!

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 > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard