cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
solisruj
Level: Powered On

Conditional File Extension filtering

Hi there everyone, 

 

I built a flow for document approval. I built the flow to be able to filter file types based on file extensions and convert/save copies in .pdf format. I tested it and it seemed to work flawlessly. The flow was able to filter out both ".docx" and ".xlsx" files and produce .pdf copies of both file types. I wanted to test it today for a demonstration, so I did a trial run on two ".docx" files; however, the workflow failed. 

Conditional.PNG

 

 

 

I opened it in advance mode to get an idea of what is going on: 

 

@contains(body('Get_file_properties')?['{FilenameWithExtension}'], 'docx')

 

To me, the above seems like it would work, but I am not sure if it is actually pulling the information I want. Would it be possible to modify/implement (or code) the method so that it pulls the filename extensions only? The idea would be for @contains() to make a comparison of the file extensions with a modified/implemented segment of code. 

 

 

***** Turns out the workflow works. I just made a mistake in an earlier step that produced files without extensions.   

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Conditional File Extension filtering

Hi @  solisruj,

 

 

Have your problem solved?

Have you  made a mistake in an earlier step that produced files without extensions?

 

Please click "Accept as Solution" so that this thread will be marked for other users to easily identify if your problem is solved.

 

Regards,
Alice Zhang

1 REPLY 1
Community Support Team
Community Support Team

Re: Conditional File Extension filtering

Hi @  solisruj,

 

 

Have your problem solved?

Have you  made a mistake in an earlier step that produced files without extensions?

 

Please click "Accept as Solution" so that this thread will be marked for other users to easily identify if your problem is solved.

 

Regards,
Alice Zhang

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: 290 members 5,184 guests
Please welcome our newest community members: