cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

More than one file type listed in condition field

I want to filter on images, docs etc in a onedrive location and based on the filter generated by condition field send that file to different onedrive location. For example and image file with file content type png will get filtered to a pics subfolder. Onviously there are different image file type such as jpg etc.Is it possible to overload the field, see screenshot

 

flowCondition.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: More than one file type listed in condition field

Hi @jwlshtm,

 

You could add the expression in the Condition as below:

 

@or(contains(triggerOutputs()['headers']['Content-Type'], 'png'),contains(triggerOutputs()['headers']['Content-Type'], 'jpg'))

I have made a test on my side, when a file with type png or jpg create in the folder, the flow would run successfully as below:

Capture.PNG

 

As @Pieter_Veenstra said, you could refer to the link that he provided to learn more anout the workflow definition language.

 

 

Best regards,

Alice

 

 

 

 

 

 

 

View solution in original post

2 REPLIES 2
Highlighted

Re: More than one file type listed in condition field

you will need to go into advanced mode and use and/or expressions

 

https://docs.microsoft.com/en-us/flow/use-expressions-in-conditions

Highlighted
Community Support
Community Support

Re: More than one file type listed in condition field

Hi @jwlshtm,

 

You could add the expression in the Condition as below:

 

@or(contains(triggerOutputs()['headers']['Content-Type'], 'png'),contains(triggerOutputs()['headers']['Content-Type'], 'jpg'))

I have made a test on my side, when a file with type png or jpg create in the folder, the flow would run successfully as below:

Capture.PNG

 

As @Pieter_Veenstra said, you could refer to the link that he provided to learn more anout the workflow definition language.

 

 

Best regards,

Alice

 

 

 

 

 

 

 

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,256)