cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Beulmoto
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
v-bacao-msft
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
v-bacao-msft
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
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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,972)