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 Automate
Suggested Answer

Workflow Errors

(0) ShareShare
ReportReport
Posted on by
Hi I so I have this bunch of emails that my colleague sent with attachments and I have to follow up from the recipients for their confirmation by replying/forward the same on the same email with attachment every time. Right now what I am trying to build is a manual trigger which is connected to a excel sheet of all the customers who have not responded and then in the loop it gets the attachment ( get file content) which is stored in a filter array and then gets message id of the emails which is also stored in a different filter array and finally sends a http request to reply on the specific email with the attachment.
 
 
Manual trigger--> list rows in a table--> apply to each loop --> get emails (V3) --> filter array (emails) --> get file content (one drive business)--> filter array (PDF file) --> http request
 
 
The issue is that despite having subject filter and recipient filter the output in get emails is empty if anyone can help me understand what might be happening or any other way I can make this flow work I would really appreciate.
I have the same question (0)
  • David_MA Profile Picture
    14,956 Super User 2026 Season 1 on at
    Please share a screenshot of your flow, specifically the “Get e-mails (V3)” action and how the filter query is configured. Also explain what data from the spreadsheet is being used in that filter.
     
    You mentioned the e-mails contain the attachments, but you are also using “Get file content” from OneDrive. Are you saving the attachments from the e-mails to OneDrive? If so, how are you linking each attachment to the correct e-mail? Is that mapping stored in the spreadsheet?
     
    Also, why are you filtering on recipient? The “Get e-mails” action retrieves e-mails from your mailbox, so you are already the recipient.
     
    Lastly, confirm which folder the action is querying. By default, it only looks in the Inbox. If the e-mails were moved, you need to specify the correct folder.
  • Suggested answer
    RaghavMishra Profile Picture
    261 on at

    Hi,

    "Get emails (V3) returns empty" is almost always a filter-syntax or scope problem rather than missing messages. Here's how to diagnose and what to try, based on Microsoft Learn:

    1. Verify which mailbox is being searched

    • By default, Get emails (V3) queries the connection owner's mailbox. If your colleague's emails sit in a shared mailbox or another user's mailbox, switch to Office 365 Outlook → Get emails from shared mailbox or use the Original Mailbox Address parameter. Reference: Get emails from shared mailbox (V2).

    2. Check the Folder parameter

    • Get emails (V3) only returns messages from the selected folder (default = Inbox). If your colleague's mail is in a subfolder or in Sent Items, you need to pick that folder explicitly. Reference: Get emails (V3).

    3. Filter syntax pitfalls

    • Subject Filter — case-sensitive substring match. If your subject has special characters or you're including angle brackets, strip them.
    • From / To filters take a single email address each — multiple comma-separated values aren't supported on the V3 action. Reference: Get emails (V3) parameters.
    • Include Attachments must be Yes if you plan to read the file content.
    • Search Query (advanced) uses KQL — e.g., subject:"Quarterly Update" AND from:colleague@contoso.com. Reference: KQL keyword queries.

    4. Confirm the action result vs. expected

    • Open the run history → expand Get emails (V3) → look at the body output. If it's {"value":[]}, the filter excluded everything — relax filters one at a time until you see results.
    • If you get an auth error, see Fix a flow that has failed.

    5. Replying with attachments — recommended pattern

    • Use Office 365 Outlook → Reply to email (V3); it accepts an Attachments array of objects with Name and ContentBytes (base64). You don't need a raw HTTP request unless you need a Graph-only feature. Reference: Reply to email (V3).
    • To build the attachment array from your OneDrive file, use OneDrive for Business → Get file content (returns base64), then compose an object:
      { "Name": "report.pdf", "ContentBytes": @{body('Get_file_content')} }
      Reference: Get file content.

    6. Why your current flow returns empty

    • The most common cause is the Subject/From filters combining to match zero messages. Try removing the From filter first, then the Subject filter, to identify which one is too strict.
    • The next most common cause is searching the wrong mailbox or folder (Inbox vs. Sent Items vs. shared).

    Found this helpful? Please mark ✅ "Does this answer your question?" so others searching for the same issue can find it quickly. A 👍 on "Was this reply helpful?" or a ♥ Like is also much appreciated!

    Raghav Mishra — LinkedIn | PowerAI Labs

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