Hi Jeroen,
This is the page that i want to create with the microflow:
Current domain model:
My question is how to display all the configured service queries in stead of one (the first)?
Regards,
Patrick
Hi Patrick,
Your page is built up as DataView (Tenant) > DataView (ServiceInstance) > DataView (ServiceQuery).
A DataView can only show one object (e.g. 1 ServiceInstance), hence the datasource microflow can only return 1 object (in your case a ServiceInstance).
Instead, you could use a List View, to display a list of objects (e.g. ServiceInstances in your case).
You must then adapt your datasource microflow to return a list of ServiceInstances given a tenant.
Given a tenant you can directly retrieve the list of instances, just by following the path.
Finally, inside your listview, you can add the dataview displaying the ServiceQuery, which you can retrieve over association.
n.b.: if you have used the datasource microflow in multipe locations where only a single object is expected, you will get some errors that you will need to handle.
n.b.2: given your model, you could end up with multiple instances of the same query for a given tenant, so I'm assuming that you filter them for the currentAccount or something like that.
Hope this helps,
Jeroen