Skip to main content

Notifications

Community site session details

Community site session details

Session Id : Hpq4iCI4IXL4WtkA88TSXx
Power Automate - Building Flows
Answered

Unable to save emails as EML file when the email contains hyperlink

Like (0) ShareShare
ReportReport
Posted on 5 Dec 2024 09:57:00 by 12
Hi all,
 
I am trying to build a flow where it saves emails passing through a shared mailbox to a SharePoint. Below is the logic of my flow:
 
A. If email contains attachments, 
      Save the attachment and nothing else
 
B. If email does not contain attachment,
     Save the content of the email (currently using .eml extension)


I have already built the flow, and it works for both A and B. However, upon further testing I found out that B does not trigger whenever the email contains a hyperlink. Below is a screenshot of examples of emails that are categorized under B but did not trigger.
 
 
 
Ideally, it should save these emails as .eml files on my Sharepoint. Below is a screenshot of my current flow for B.
 
 
 
 
Please help! Appreciate your contribution.
 
 
  • Verified answer
    Artur Stepniak Profile Picture
    1,521 Super User 2025 Season 1 on 06 Dec 2024 at 07:55:00
    Unable to save emails as EML file when the email contains hyperlink
    Hello,
     
    if that's the case, then probably anti-phishing policy is causing that behaviour. There's no option to bypass this - otherwise it wouldn't be a good policy. ;-) The only way to overcome this is to consult with your company's security team - review the policies etc.
    Overall I can imagine the case where you receive an email with malicious attachments/hyperlinks on your mailbox and then it's automatically exported and saved on SP - there's a risk that something would run and infect MS servers.
     
    In case of any other questions, let me know. If the answer helped you, mark it, so that others can benefit from it.
     
    Best regards,
     
    Artur Stepniak
  • AC-28110956-0 Profile Picture
    12 on 06 Dec 2024 at 02:52:04
    Unable to save emails as EML file when the email contains hyperlink
     
    thanks for assisting. Just did some further testing, seems like the flow is unable to save email containing hyperlinks that are coming from OUTSIDE from the organization. If my guess holds true, any suggestions on how I can bypass this (security reason or whatever it is)? Or even changes to my current flow.
  • Suggested answer
    Artur Stepniak Profile Picture
    1,521 Super User 2025 Season 1 on 05 Dec 2024 at 10:27:55
    Unable to save emails as EML file when the email contains hyperlink
    Hello,
     
    is the path to saving the file correct? I don't see a slash after Shared Documents, but I guess you're adding it in concat().
    I've just tested your solution and I've managed to properly save the e-mail file on my OneDrive, it was with a hyperlink. I guess it's not the cause of a problem. 
     
    In case of any other questions, let me know. If the answer helped you, mark it, so that others can benefit from it.
     
    Best regards,
     
    Artur Stepniak

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 61

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 47 Super User 2025 Season 1

#3
rzaneti Profile Picture

rzaneti 29 Super User 2025 Season 1

Overall leaderboard
Loading started