How to display the List of objects fetched by Retrieve Object activity in a Microflow

1
I have prepared the below microflow. Entities in my domain model are Location (Attributes: LocationID, LocationName)  Office (Attributes : OfficeiD, LocationID, OfficeName). Please help me guidance on how to $OfficeList Retrieved by the “Retrieve” object activity of below microflow. For time being I have set the $OfficeList, but I want to display $OfficeList in a page before the end event of microflow. as return value,
asked
3 answers
1

Create a page and add a data grid to it then select the data source as microflow and pass this microflow over there , but before this change the return type of your current microflow to a list and pass the list which you have retrieved via retrieve activity , and finally call this microflow from navigation .

answered
0

Hi Samreen, 

As the error states “Parameter 'Location' of the selected microflow does not match available arguments”, the page where you are using the datagrid, must have a dataview with entity location. Then inside that, you can have a datagrid. This is because, you have Location as the parameter for this Microflow. In this case, I dont even see the need for datasource microflow if Location and office is associated.

https://docs.mendix.com/refguide/microflow-source

If you want to have datagrid only in your page without dataview for location, then you cannot have the Location parameter. And the Datasource microflow must be returning the list of all Offices. 

answered
0

Probably doing the same assignment as you collegue here: https://forum.mendix.com/link/questions/101519

Take a look at the give solution of Ananthi A and my addition to it.

answered