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.

View solution in original post

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.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 268 members 6,713 guests
Please welcome our newest community members: