Add variable to a list in a microflow

I try to pick up all the hours booked on each project. Then I want to calculate the hours per working hour between the start and end date. In the end I want to add this all together to get a total overview of the hours per project. Finally I want to show this in a listview so I can show it on the overview page. However, I cannot add variables to a list. Any idea how I can add the variable TotalProjectHours to AllHoursByProject so I can return it from the microflow? This is what I currently have
1 answers

Create an entity where you store the values and create a referencte between the project and this new entity. Then you can return that object in the microflow.