Hello P Automate community,
I need help with the following flow, this is the problem statement:
"I need to send out one email to 5 different regions with a PDF attachment which is coming from 'Export file from Power BI'".
The emails should have this structure:
Email 1 for Region 'a'
- Metric 1
- Metric 2
- Metric 3
- Metric 4
- Metric 5
- Metric 6
Email 2 for Region 'b'
I'm looping from two SharePoint lists, one with Region and one with Metrics, ideally I want the 1st loop to go through the region list, create the Power BI PDFs with the applied metrics and put all the PDFs in one single email. This is the error I'm getting:
Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The inputs of template action 'Attachment_Array' at line '1 and column '4259' cannot reference action 'Attachment'. The action 'Attachment' is nested in a foreach scope of multiple levels. Referencing repetition actions from outside the scope is supported only when there are no multiple levels of nesting.'.'.

Thanks for your help, I appreciate any ideas or suggestions.