web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Send MULTIPLES Attachements in one email having both (Different attachments) in one folder

(0) ShareShare
ReportReport
Posted on by 8

Hello , 

 

I am trying to create an email that goes to different people with two different attachments(PDFs), one is an overview and the one is a list. I have all the files in the same folders but when I run the flow, I only get 1 of the attachments. I am not quite sure how to set up the Excel file to look for the attachments, I initially have it one row per Attachment

GabrielAgil_3-1700066607783.png

and then I have it as one attachment column with 2 rows per person

GabrielAgil_2-1700066504187.png

 

Also, how I successfully identify the 2 individual attachments so I get both on the email for the right person 

GabrielAgil_4-1700066724074.png the condition is attachment_1 = Display name

 

 

GabrielAgil_5-1700066892709.png

 how can you capture the content of the second File?

 

thank you

 

 

 

 

 

 

 

 

 

I have the same question (0)
  • tom_riha Profile Picture
    10,179 Most Valuable Professional on at
    Re: Send MULTIPLES Attachements in one email having both (Different attachments) in one folder

    Hello @GabrielAgil ,

    it's the loop over attachment you have in your flow - if you have a loop it'll process the attachments one by one and do all the actions in the loop for each of the files separately. If you have multiple attachments you must pre-prepare them into an array before you send the email.

    The second point, filtering the attachments, use the 'Filter array' action after 'List files in folder', that way you can 'List...' all files, 'Filter...' only the relevant ones, create the array with the attachments as mentioned above, and send the email.

  • GabrielAgil Profile Picture
    8 on at
    Re: Send MULTIPLES Attachements in one email having both (Different attachments) in one folder

    thank you for your response,

     

    However, I am still not able to understand how the second PDF 'LISTNAME2.pdf" will be identified on the flow. 

    I successfully was able to capture the content of attachment 1 "SummaryName1" for NAME1, but I can't get the second pdf "LISTNAME1.pdf"

  • tom_riha Profile Picture
    10,179 Most Valuable Professional on at
    Re: Send MULTIPLES Attachements in one email having both (Different attachments) in one folder

    Hello @GabrielAgil ,

    you can use a composed filter to search for multiple files in the 'Filter array' action, e.g.

    @or(equals(item()?['Name'], 'File1.pdf'),equals(item()?['Name'], 'File2.pdf'))

    image.png

     

  • GabrielAgil Profile Picture
    8 on at
    Re: Send MULTIPLES Attachements in one email having both (Different attachments) in one folder

    Apologize, but I am afraid that we are not understanding each other. I am trying to create a flow like in this video https://www.youtube.com/watch?v=ku0NM9jhp-A&t=271s&ab_channel=LeilaGharani

     

    but with attachment 1 and attachment 2 I have the files. I am able to recreate the same logic for attachment 1 but I am finding no answers to get the content of the attachment 2 for the correct email.

    please provide some insights 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 691 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 431 Moderator

#3
developerAJ Profile Picture

developerAJ 266

Last 30 days Overall leaderboard