Hi gang,
We've added a custom connector that calls the TOPdesk asset API. The Swagger documentation to get a list of assets says that it returns an object like this:
{
dataSet: object,
// and some other properties that we don't care about
}
However, the "dataSet" property isn't an object - it's an array of objects whose properties are not known at design time. The properties returned depend on the kind of asset you're querying for and which fields you've requested.
I can't figure out how to handle this in PowerApps. If I use the Gallery control and populate a collection with the result of this call, I can't bind any text elements to the fields that I know are returned, because PowerApps wants the fields defined at design time.
How can I tell PowerApps that the result of the call is dynamic? I know I could potentially hand-edit the Swagger schema and add every property I might retrieve, but that seems like a fragile solution - if we ever update the connector, my changes would be lost.
Anyone else querying an API that returns JSON objects with dynamic properties?
Thanks,
Matt
Hi,
Looking through your post here, I'm not exactly sure how to fix something like this. It appears to be an issue on the custom connector side of things but I'm not exactly sure how to correct something like this. I would recommend opening a ticket with Microsoft support. I'll include a link below if you would like to go down this route. Otherwise if any other communities members have any ideas feel free to chime in.
If you would like to create a ticket with Microsoft Customer Support here is a link on how to do so: https://docs.microsoft.com/en-us/power-platform/admin/get-help-support
Regards,
Alex
-------
Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.