cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Flow Condition not working

I built a simple flow. The purpose is when a file is added to OneDrive, copy it automatically to Sharepoint based on the file name. When I added a file (file name contains Test) to OneDrive, the flow ran successfully but the file didn't copy to Sharepoint. Please somebody tell me what I did wrong. Thanks a lot!

 

Flow.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
yashag2255
Dual Super User II
Dual Super User II

Hey @Anonymous 

 

In the one drive connector, for a When a new file is created trigger, the trigger is set off as soon as the file is created and teh file name attribute gets the internal unique name of the file that is generated in OneDrive. You need to add the get file metadata to get the display name of the file and then use that in the condition. 

rr32.PNG

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

5 REPLIES 5
Gristy
Resident Rockstar
Resident Rockstar

look at your flowrun and compare what the trigger is inputting into the condition with what you have set as the condition.

 

If it is not hitting the yes branch, then the condition must not be correct.

yashag2255
Dual Super User II
Dual Super User II

Hey @Anonymous 

 

In the one drive connector, for a When a new file is created trigger, the trigger is set off as soon as the file is created and teh file name attribute gets the internal unique name of the file that is generated in OneDrive. You need to add the get file metadata to get the display name of the file and then use that in the condition. 

rr32.PNG

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

v-alzhan-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please take a try with @yashag2255 's solution and let me know if your problem could be solved.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thanks, yashag2255. Your solution worked!

Anonymous
Not applicable

It turned out that I needed "Get file matadata" before Condition. See yashag2255's solution.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Top Solution Authors
Users online (2,348)