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 Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (2,750)