web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Creating Dynamic OneDr...
Power Automate
Unanswered

Creating Dynamic OneDrive Folder Path

(0) ShareShare
ReportReport
Posted on by 107
Hello,

I am creating a flow to trigger based on a file being created in a SharePoint library. From there I want only files created in certain folders to be copied to OneDrive and follow up with a notification email.

To accomplish this I have used the split function to breakdown the SharePoint folder path and use a condition for moving to the OndDrive file creation. This works well but I also want to create a dynamic folder path on the OneDrive side by applying the folder names of the file in SharePoint.

As an example if the SharePoint folder path is Site Name/Service Reports/Vendor Name, I use the Compose actions to extract these terms. I want to then create a new OneDrive folder path in OneDrive in a different order.

Currently, upon testing this worked the first time but after that it would not send the file to OneDrive. This would work about every 3rd or 4th attempt (not reliable).

Interestingly, the step showed “completed” in the test but the file never arrived. There was no error in the testing within Flow. The only thing that caught my eye on the output side of the OneDrive step is in the “IsFolder” stated “false”. It also states this in the few instances that it worked.

I’m a bit confused. Can anyone offer assistance?

Thank you.
Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Anonymous5 

     

    Could you please post a screenshot of your flow?

     

    Thanks

  • Gristy Profile Picture
    2,429 on at

    very odd, maybe post the screenshot of the flow for others to take a look to see what may be tweaked.

  • Anonymous5 Profile Picture
    107 on at

    Here is my flow:

     

    Flow_1.jpgFlow_2.jpgFlow_3.jpg

    I just tried to trigger theis again this morning. I have also posted the output of the OneDrive step. The folder path it has created is correct and the step shows successful but the file never arrived.

  • Verified answer
    v-bacao-msft Profile Picture
    on at

     

    Hi @Anonymous5 ,

     

    Is folder is false is the expected result, the action you use is Create file action, which creates a file instead of a folder.

    Alternatively, please try adding a "/" in front of the Folder Path and see if this improves the current situation. It seems that your configuration has no logical errors.

     

    Best Regards,

  • Anonymous5 Profile Picture
    107 on at
    Hi Barry,

    This appears to have solved my issue. This is a bit confusing as I originally picked the first folder level using the “picker” tool to navigate to it in OneDrive. Seems strange that I’d have to then manually edit with the additional slash.

    At any rate, thank you for the help.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard