cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Community Support
Community Support

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

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
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (5,590)