In the microflow retrieve over the association and use the aggregate List function to count. See documentation here: https://docs.mendix.com/refguide/aggregate-list
You can then use this value as return value of the microflow.
Regards,
Ronald
Hi Matteo (Great Name!),
In order to this this the first step would be to do a database retrieve on Aircargo. In the xPath for this retrieve you have to use the association to Category and check if Aircargo_Category/Category/Name = ‘ Electronics’. This will return a list of all aircargo’s that are associated with the Electronics category.
Step 2 is to use the aggregate list activity. Open the activity and select the list you just made as List and select ‘Count’ as function. This will return an integer with the amount of items in the list.
Please let me know if this works for you.
Hello Matteo,
Retrieve AirCargo over association by Category. Use a list operation to aggregate the retrieved list and do a count operation. It will give you the number.
For details take a look at Mx documentation:
https://docs.mendix.com/refguide/aggregate-list
You have the count, now you can use it as per your requirement.