Inputs
- SharePoint List - contains the following columns
- SharePoint Document Library
- File names which contain the Site Name string
I'm trying to create a flow that goes item by item through a SharePoint list, find the files within a SharePoint document libary that contain the specific site name, and then emails those files to the contacts specified in the above list on a fixed schedule.
For example, the SharePoint list will have an entry where the Site Name = "Group ABC", with Contacts = "John Doe; Jane Doe". The Flow would loop through the list, hit that entry, then search the document library for any files that contain the string "Group ABC". Ideally, it would then package each of those files into a single email which gets sent to John Doe and Jane Doe. I'm not sure if that last part is possible, so if necessary, we can send 1 email per file.
The problem I'm having is that the straightforward way of creating this flow requires me to have nested loops. Top loop that cycles through the List, with a nested loop that then cycles through the Document Library for each list item. Flow does not currently support nested loops, but I feel like there has to be some workaround I could use that would allow this without creating nested loops. Just can't figure out how to structure it in a way that Flow allows.
Any ideas?