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 / Bind complex json to l...
Power Apps
Unanswered

Bind complex json to label and dropdown of gallery in canvas app.

(0) ShareShare
ReportReport
Posted on by 15

I have below json output 
[
{
"moduelName": "test module",
"instructorinfo": [
{
"instructorName": "test test",
"instructorId": "1931dec0-c1ba-ee11-9078-6045bdd0ed08"
}
]
},
{
"moduelName": "test module1",
"instructorinfo": [
{
"instructorName": "test test",
"instructorId": "1931dec0-c1ba-ee11-9078-6045bdd0ed08"
},
{
"instructorName": "test test",
"instructorId": "1931dec0-c1ba-ee11-9078-6045bdd0ed08"
}
]
}
]
My requirement is On the gallery two control are there label and dropdown. On label I want to show each module name and on the dropdown I want to show the  associate instructor name . for example for first module it will  show the "test module" and only 1 instructor in dropdown and for other module it will show the "test module1" and 2 instructor in dropdown.

Categories:
I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    Hi @Shubham_Koolwal ,

     

    In a test I set your JSON string as the text in a Text Input control (TextInput1) so I could reference it.

     

    Then I added a gallery and set its' Items property to:

    Table(ParseJSON(TextInput1.Text))

    Inside the gallery, I used the below for the Text property of a label to display the module:

    Text(ThisItem.Value.moduelName)

    And finally for the dropdown I set its' Items property to:

    ForAll(ThisItem.Value.instructorinfo,{instructorName: Text(ThisRecord.instructorName), instructorId: Text(ThisRecord.instructorId)})

     

    This gave me the below result:

    BCBuizer_0-1706271190675.png

     

    For reference and credits: I used this article to get to this solution: https://devoworx.net/powerapps-parse-json-examples/

  • Shubham_Koolwal Profile Picture
    15 on at

    Yeah super, working as expected. Thank you so much.

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard