Hi,
I have a document library for Policies and other documents that need an approval process.
The approvers don't always approve or reject so the document can sit as Pending for a number of weeks.
I would like to create a flow that finds all documents that are pending, creates an array (or some kind of list) that can be used to then send an Approver an list of their documents that are pending.
A document can have mulitple approvers.
The array of approvers and documents might look like this:

I have got this far but I am a bit stuck how to put the Apply to each together to generate an array I can then use in an For Each Approver create an email with a list of documents and their links.


In set variable approver2 I am not getting a value I can use, but I might be going in the wrong direction at this point anyway.

Thanks
Rosie