cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cfnwfwmd
Helper I
Helper I

Filter out file extension when a file is created on FTP

I have a flow setup to copy files from a sharepoint location to a ftp.   I want to only copy files with a .csv extension and exclude files with a .raw extension but I'm having trouble getting the flow to work.   Here's my basic flow

 

CopyFlowftp2.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User II
Super User II

Hi @cfnwfwmd,

 

If you only want to copy csv files I would use a trigger condition in the settings and check if the content-type field equals text/csv.

 

In the settings of your first action you could add the following trigger condition

@equals(triggerOutputs()?['headers/Content-Type'], 'text/csv')

textcsv_triggercondition.png

View solution in original post

2 REPLIES 2
Expiscornovus
Super User II
Super User II

Hi @cfnwfwmd,

 

If you only want to copy csv files I would use a trigger condition in the settings and check if the content-type field equals text/csv.

 

In the settings of your first action you could add the following trigger condition

@equals(triggerOutputs()?['headers/Content-Type'], 'text/csv')

textcsv_triggercondition.png

View solution in original post

Perfect!  Thank you! 

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (967)