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

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.

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!

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (2,782)