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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Struggling in reading ...
Power Automate
Answered

Struggling in reading the attachment from an email

(2) ShareShare
ReportReport
Posted on by 8
Use case : I get an automated email with attachment at a fixed time everyday from a system mail ID. The PDF has some 10 rows. If one of the row in the PDF has content as error, I want to send follow-up mail to a team member. 

Note: I use web mail outlook 365 and web version of Power automate

While automating this, I have configured the first trigger step successfully. I am confused in what is the step 2 out of these 2 options.
1. Choose 'Apply to each'. If I choose this, I am not getting 'attachment' in the 'Select an Output from previous steps'.
2. Get Attachment V2. If I choose this option, I dont know what is message ID and Attachment ID? 

Can someone pls help.
Apply to each.png
Get Automate V2.png
I have the same question (0)
  • Suggested answer
    Vish WR Profile Picture
    3,748 on at
    have u tried ai buider action like Recognize text in image or document or run a promput  to process the pdf ?  

    i will see if i can try with sample , if worked will share 
  • Verified answer
    rezarizvii Profile Picture
    352 on at
    Hi, hope you are doing well.
     
    You are actually really close. I am assuming you have used the Outlook trigger "When a new email arrives (V3)". The reason you are not seeing attachments in the 'Select an Output from previous steps' is because by default the trigger does not include the attachments. You have to manually make it include attachments.
     
    Here are some screenshots for your reference:
    1. Mark the "Include Attachments" parameter as "Yes" in your trigger.
    2. In your Apply to each action, you will now see "Attachments" from your trigger that you can add in the 'Select an Output from previous steps'.
    3. You can then add a "Get Attachment (V2)" action inside the loop to get the content of the attachment. You can get the Message ID from your trigger (triggerOutputs()?['body/id']) and the Attachment ID as the current item in the loop (item()?['id']).
     
     
    ==================================================================
    If this reply helped you in any way, please mark 'Yes' for "Was this reply helpful?" and give it a Like 💜
    In case it resolved your issue, please mark it as the Verified Answer ✅.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard