Microflow Iterate over multiple entities and perform operations
0
Hi, I have four entities (AMN, AMS, ASN, ASS) with a 'Consumption' attribute containing data for multiple years. I also have a separate entity called 'GroupElectricalEnergy' with attributes 'Totalconsumption' and 'Year'. My goal is to perform calculations in a microflow. Here are the specifics: The four entities contain consumption data for different regions. I need to calculate the total consumption for each region across all years. This calculated value should be stored in the 'GroupElectricalEnergy' entity under the 'Totalconsumption' attribute for each respective year. Provide some idea to implement this in microflow My microflow that i tried
asked
Kiran Nemade
1 answers
0
Kiran,
If you set up your domain model this way:
You can create the total objects with a microflow like this:
Note that you will need to populate the Years entity and your users will select the year with a reference selector when entering consumption data.