Canvas app Form unable to get fields from Custom Connector returning tabular data from REST API
I created a Custom Connector our of my REST API that returns tabular data. I used it as a datasource in a canvas powerapp, which store the records from the custom connector into a collection. This collection is used as datasource by a Gallery which successfully displays the items and attributes of each item. However, when I try to create an Edit Form that uses the custom connector as datasource it cannot access the fields. It does not work using directly the custom connector as data source either.
In this answer from @aorphan I read that you can use custom connectors in forms as long as they return tables instead of actions. And as far as I can see, the content of the collection is tabular data:
Even the columns of the collection can be accessed as attributes of the item displayed by the Gallery:
However, even after setting the collection as datasource of a new Edit Form, it is unable to add any fields from the datasource:
Just in case my data needs some richer definition to be correctly interpreted by the Form, the JSON returned by my API looks like this:
According to this answer in Stackoverflow, the feature of dynamically loading the fields of a record from a Custom Connector is not supported by Forms editor, no matter it is a table instead of actions.
However, beyond the fact that the form fields cannot be dynamically generated, using the approach of assign each field in form's datacards to a column of the selected item of the gallery seems to do the trick.