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 / Flow - Moving a file b...
Power Automate
Unanswered

Flow - Moving a file between duplicate folder hierarchies in SharePoint whilst retaining place

(0) ShareShare
ReportReport
Posted on by 20

Afternoon all,

Hope that you all had a great Easter and that some of that good will charm can help with my query.

 

Scenario:  I am after a workflow that will transfer a document once a specific condition has been met to the appropriate place in a folder hierarchy.  What does this mean exactly?  Well, I have a private team site where colleagues have a long-standing folder structure within an SPO Document library.  I have cloned this library structure and added it to a second, organisation facing site.  This organisaton facing site makes use of wiki pages but links to documents when and where appropriate.

 

Documents are prepared in the private Team Site until they're ready for publication to the public facing wiki.  I'm seeing a workflow that would recognise where a document sits within source and is able to move to the appropriate area in target.  The workflow I've created thus far, is able to determine when a file is ready to move but will only move to the root of the target library, not to the corresponding part in the folder hierarchy.

 

Tips and pointers appreciated.

 

Categories:
I have the same question (0)
  • Brad_Groux Profile Picture
    4,556 on at

    All you need to do is reference the Folder path in the copy step, which you can get access to via the Dynamic content list under the When a file is created or modified (properties only) heading:CopyFolderPath.png

    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!

  • S_D_Andrews Profile Picture
    20 on at

    And there it is, right under my nose.   I'll test and will mark up as a response once I've got working.

     

    many thanks

  • S_D_Andrews Profile Picture
    20 on at

    Right, so with this one, I've generated an HTTP 400 error, with file not found.  From the error message, it looks like the flow is trying to create validate the target at source by adding the ID to the Root URL of the library.

     

    Any suggestions on a fix?

     

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 315 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 273 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 117 Super User 2026 Season 1

Last 30 days Overall leaderboard