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

FTP filename condition

This if my first post and I'm new to Flow.

 

I'm attempting to create a flow that triggers an HTTP GET request when a specific file is updated on an FTP server.

 

I've added a condition step, and tried using an expression formula as referenced here https://powerusers.microsoft.com/t5/Building-Flows/Flow-Failing-file-name-is-equal-to/td-p/155322 but I have yet to succeed.

 

This screenshot is the only format that will run successfuly, except it will always default to the no side of the condition.

 

Any help would be appreciated

 

msflowscreen.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: FTP filename condition

Hi @Beulmoto ,

 

As mentioned in Thread you provided, file name is encoded to base 64. You could change "x-ms-file-name-encoded" to "x-ms-file-name".

If you are using When a file is added or modified as a trigger, you could configure Condition like this:

triggerOutputs()['headers']['x-ms-file-name']

56.PNG

 

Other methods you could consider using are the following two:

 

  1. One is to use Get file metadata action to get DisplayName of the file, then configure DisplayName in Condition for comparison.
  2. The other is to use When a file is added or modified (properties only) as the trigger, and then configure DisplayName or Name in Condition for comparison.

 

Please take a try.

Community Support Team _ Barry
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: FTP filename condition

Hi @Beulmoto ,

 

As mentioned in Thread you provided, file name is encoded to base 64. You could change "x-ms-file-name-encoded" to "x-ms-file-name".

If you are using When a file is added or modified as a trigger, you could configure Condition like this:

triggerOutputs()['headers']['x-ms-file-name']

56.PNG

 

Other methods you could consider using are the following two:

 

  1. One is to use Get file metadata action to get DisplayName of the file, then configure DisplayName in Condition for comparison.
  2. The other is to use When a file is added or modified (properties only) as the trigger, and then configure DisplayName or Name in Condition for comparison.

 

Please take a try.

Community Support Team _ Barry
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
firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

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 Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,715)