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 / Copy Folder Structure ...
Power Automate
Answered

Copy Folder Structure Not files

(0) ShareShare
ReportReport
Posted on by

Good Morning, 

 

I am trying to copy a folder structure of all Folders under a the Document Document Library to another Site 

 

I have found a few PowerShell scripts that can do this but connecting via the CSOM - and unable to Authenticate in our environment

 

I have seen a few flows to copy whole directories but includes all the content.   Any help with any previously posted articles or guidance would be appreciated.  

 

 

Thank you 

 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @Sn3l ,

     

    Please try this

    vxiaochenmsft_0-1715220767310.png

    FSObjType eq 1

    replace(items('Apply_to_each')?['{FullPath}'],'Shared Documents/','')
     
    Best Regards,
    Wearsky
  • Sn3l Profile Picture
    on at

    @v-xiaochen-msft  This worked perfectly.  Thank you very much. 

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard