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."
}
]
}
Solved! Go to Solution.
Hi @ajhstn ,
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,
Hi @ajhstn ,
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,
Amazing, that works!
User | Count |
---|---|
221 | |
99 | |
94 | |
55 | |
35 |
User | Count |
---|---|
273 | |
105 | |
104 | |
60 | |
60 |