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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Control condition by checking MediaType of file Metadata

(0) ShareShare
ReportReport
Posted on by 19

Hi all, I'm amending automate flow template of "saving email attachments in SharePoint library from Office 365 outlook when email arrives" by adding "Get File Metadata" and "Control Condition" as below to filter by "MediaType" of the attachment I would like to add. 

 

I tried to check the the "MediaType" of each attachment and if it's 'image/png' then I save this attachment in SharePoint as below shows.

Automate122703.PNGHowever I tried and always failed no matter if I put as 'image/png' or simply image/png and it didn't work ("File identifier" in "Get file metadata" is set as "current item").

Test resultTest result

So if people can comment where went wrong.

I have the same question (0)
  • Verified answer
    v-bacao-msft Profile Picture
    on at
    Re: Control condition by checking MediaType of file Metadata

     

    Hi @Michaelcwang2 ,

     

    Please try to use this configuration:

    229.PNG

     

    Best Regards,

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 788 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 452 Moderator

#3
developerAJ Profile Picture

developerAJ 302

Last 30 days Overall leaderboard