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 / Problem with a simple ...
Power Automate
Answered

Problem with a simple flow ...

(1) ShareShare
ReportReport
Posted on by 173

Hello,

I’m having an issue with a fairly simple automation, and I’m not sure what’s going wrong.

I want an email account to identify a tag in the email's subject line upon receiving a message. Up to this point, everything works fine.

Afterwards, for each message identified with the correct tag, I want to save the attachments to OneDrive only if they are .docx, .doc, .xlsx, .xls, or .pdf files.

 

When I run a test of my flow, the automation detect the attachments, but it doesn’t recognize any of them as ending in .pdf or .docx (for the test).

 

The flow :

 

 

 

 

i don't understand where is the problem ...

 

Kind regards

Categories:
I have the same question (0)
  • Verified answer
    Ellis Karim Profile Picture
    12,081 Super User 2026 Season 1 on at
     
    Just change the ordering of the condition to
     
    We are testing: if the filename ends with .docx etc.


    The flow Condition changed to support  multiple different file types.


    Ellis
  • Verified answer
    Expiscornovus Profile Picture
    33,855 Most Valuable Professional on at
    In your condition you have swapped the order of the field and the value. Like you mentioned, you want to check if the Name ends with .doc.
     
    Please place the Name field on the left side and the '.doc' text on the right side.
     
     
     
  • GreguS Profile Picture
    173 on at
    Yes for your response i am a noobs seriously ...
  • Suggested answer
    SaiRT14 Profile Picture
    1,992 Super User 2025 Season 1 on at
    Here are high level steps:
    • Trigger: When an email is received.
    • Condition: Check for the tag in the subject line.
    • Action: Use the Apply to Each action to loop through all attachments.
    • Condition Inside the Loop: Check the file extension using endsWith() and toLower().
    • Action: Save the attachment to OneDrive if the file type matches the allowed extensions.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 664

#2
Haque Profile Picture

Haque 460

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard