I have a flow that goes through the filtered items and inside the apply to each i have a compose that totals the attachments for each item.
Compose: length(outputs('Get_attachments')?['body']) - the outputs of this compose are correct but i then need to create an HTML table that will show the total attachments for each item on a separate row along with some other items from that SharePoint list.
Whatever i try at the min the totals are coming back and one entry on the HTML table or like the below:
Item 1:

Item2 (contains both item 1 and 2)

And so on with the next item etc, what should be happening is it should read:
Item1: 3
Item2: 0
Item3: 3
Item4: 6
Thanks in advanced