cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Caldog
Level: Power Up

Content Type - Value and or syntax?

Hi,

 

I am creating a flow which automatically stores attachments sent to an email account. In order to avoid pulling  through signature logos or any other image file types i want to find a way where i can specificy multiple value types to allow those specific types of files to be saved. See image below. 

 

Microsoft Flow Snippet.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Content Type - Value and or syntax?

Hi @Caldog,

 

I just tested with content type in email body and it shows my excel file like this:

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

 

So the content type dynamic content is not the file extension actually. You could use the Attachment Name instead. 

 

I have the condition like below. Flow checked the file and runs successfully:

 

Condition in advanced mode:

@or(contains(items('Apply_to_each')?['Name'],'.xlsx'),contains(items('Apply_to_each')?['Name'],'.docx')

 

Capture.PNG

 

Let me know if this works for you.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 REPLY 1
Community Support Team
Community Support Team

Re: Content Type - Value and or syntax?

Hi @Caldog,

 

I just tested with content type in email body and it shows my excel file like this:

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

 

So the content type dynamic content is not the file extension actually. You could use the Attachment Name instead. 

 

I have the condition like below. Flow checked the file and runs successfully:

 

Condition in advanced mode:

@or(contains(items('Apply_to_each')?['Name'],'.xlsx'),contains(items('Apply_to_each')?['Name'],'.docx')

 

Capture.PNG

 

Let me know if this works for you.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 232 members 4,655 guests
Please welcome our newest community members: