Skip to main content

Notifications

Power Platform Community / Forums / Using Flows / Problem with a simple ...
Using Flows
Answered

Problem with a simple flow ...

Posted on by 131

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

  • Suggested answer
    SaiRT14 Profile Picture
    SaiRT14 317 on at
    Problem with a simple flow ...
    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.
  • GreguS Profile Picture
    GreguS 131 on at
    Problem with a simple flow ...
    Yes for your response i am a noobs seriously ...
  • Verified answer
    Expiscornovus Profile Picture
    Expiscornovus 30,265 on at
    Problem with a simple flow ...
    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.
     
     
     
  • Verified answer
    EKarim Profile Picture
    EKarim 10,048 on at
    Problem with a simple flow ...
     
    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

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

September 2024 Newsletter…

September 2024 Community Newsletter…

Community Update Sept 16…

Power Platform Community Update…

Tuesday Tip #2 Global Search…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 142,008

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,531

Leaderboard

Featured topics

Restore a deleted flow