Re-create dynamically a collection (using a custom API and not knowing the structure in advance)
I'm building an app where I request for a set of data using a custom API (TestConnection). I successfully get back data and assign them to collections without knowing the structure in advance.
But is it possible to create dynamically a collection that has the same structure? I can have the same result if I know the structure in advance (I just create the same fields inside a ClearCollect, as the structure of swagger) but what are the chances to get it automatically?
Right. By saying dynamically, I meant to get the Collection structure without the data from the Custom API in order to use the same method for many cases & structures and not have to write the fields one by one.
It's a pitty that we cannot have it but any case, we can write the function, is not really a big deal.