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 / Control condition by c...
Power Automate
Unanswered

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.

Categories:
I have the same question (0)
  • Verified answer
    v-bacao-msft Profile Picture
    on at

     

    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

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard