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

Notifications

Announcements

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
    11,691 Super User 2025 Season 2 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,195 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,990 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard