cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Community Support
Community Support

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
Highlighted
Community Support
Community Support

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

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

Top Solution Authors
Users online (7,581)