Showing results for 
Search instead for 
Did you mean: 
Helper II
Helper II

create synchronized specific folders within Sharepoint

Dear Fellow Users.


I am fairly new to using PowerAutomate. Until now I only used the basic actions for some simple tasks. But what I want to make now is unknown territory for me.


I need your help whit the following concept. (see photo.) The company I work for uses SharePoint as work environment and as a platform to provide files to external involved companies. The company I work for mainly works on a project basis. A Standardized SharePoint environment is therefore created for each project.


Most files may not be shared or are not interesting to the external companies. that is why I want to create a sub-folder for each folder (folder 1 0--> 1.1, 2--> 2.1, 3-->3.1 ect) that contains all files that may be shared. this sub-folder must be synchronized with folder with the same name in another library on the same SharePoint site “External sharing platform”.


For this I want to use a "recurrence trigger" every x hours. Here comes the hard part, the flow must  check the differences in both libraries in specific folders. If there are differences, a new file must be created or deleted on the “external sharing platform”


Is this even possible?



Memorable Member
Memorable Member

Hello @S_J_G 

The documents being shared in the External sharing platform, are they allowed to be edited by the people there or can they only read/view the documents?


You should not have your recurrent flow do any checking, just make a Get files action with a Filter Query field condition that will include only files having been modified within the last couple of hours. That will minimize the amount of files you need to synchronize every time.


If you can, add a property to your folders or create a folder content type, so you easily can identify if it is shareable or not. Then you can include that information in the Filter Query field and minimize the workload even further.


Let's hear back from you on the above and about how far you have gotten already 🙂

Kind regards, John

Hi @JohnAageAnderse 


The external users are only allowed to read the documents.


Great Idea! I think I'm going to add an extra column to SharePoint, (Shared File Yes / No).
add a extra property to the sub folder> when you add file to subfolder, automatically "Share File" Column = Yes
or something like that.  Create flow using the action "when a file is created or modified ". But this idea doesn't work when you delete a file, does it? this is not part of creating / modified.
(i cant use "when file is deleted" action, only admins can orsomething)

But, I wanted to make a recurrent flow instead of a automated flow. I read somewhere ; if you have Sharepoint folders added to your local desktop, automated flows wil not be triggered if you upload files locally. is this True?



Hello @S_J_G 

About libraries synchronized to your desktop - I observed through tests, that a file dragged/dropped into a library that is synchronized to your desktop (using OneDrive) will not trigger a file creation event. At the same time, if I copied a file into the same library, then it will trigger a file creation event.


About keeping your external sharing platform up to date, there are some suggestions:

  • make a list that will keep track of which documents in the source library have been created, modified, deleted.
  • make a flow that will update the above list with item ID, file name, state (updated), when a document is created or modified in the source library.
  • make a flow that will update the above list with item ID, file name, state (deleted), when a document is deleted in the source library.
  • use the above list in your recurrent flow to update the external sharing library, remove each processed item from the list.

The above relies on that you can add a column to the external sharing library that will hold the ID of the document in the source library, so that you can easily identify which document to update/delete.

Kind regards, John 

Hi @JohnAageAnderse


Progress update (below): I tried your suggestion. I tried to use the ID column field but it didnt work out for me. When i moved/copyed or created a sample file, the ID just automatically changed, so i could not compare them anymore. Also i can't monitor deleted files because i am not an admin.


I managed to make a flow that moves files via the file name. The filename will be unieke enough for my use case (i think).
the only challanges i face now are;

- how do i get the file in the right folder. Both external and internal folders have the same name.

- how do i remove files thet where deleted in the internal workspace. whitout "when file is deleted" action.








Hello @S_J_G 

About the issue with not being able to use the When a file is deleted trigger:

  • You will then have to make your own solution to this - Recurrent flow that takes every shareable file from your External sharing platform library and check if the original file still exists in the Internal work environment library. If it does not, delete the file.
  • Or you can raise your issue with the Site collection admin - maybe he/she can provide a solution, like a service account.


About synchronizing files to the External sharing platform:

  • I would use the Copy file action instead of Create file from the file content. See my example below.
  • To ensure that the file ends up in the folder - I use a variable to build the target path in which to copy the file to.

Example flow (not real, just quickly put together as an example)

Flow.S_J_G.TargetPath and Copy file.jpg

Kind regards, John




Almost there i think; 

now i only get the following error, do you know why?



Hello @S_J_G 

In that Append to string variable action, what is the expression that you use?

It states that you are using the REPLACE function and that the value you provided to it as the first parameter is not a string.

Kind regards, John

Hi @JohnAageAnderse 


Hello @S_J_G 

In the REPLACE function, the 1st parameter has to be the folder path (dynamic property) of the file from the internal workspace! That means that it cannot come from the triggerOutputs!

Looking at your flow, the action "Get files (properties only) - Internal workspace" is where the 1st parameter should come from! 🙂

Kind regards, John

Hello @JohnAageAnderse 


Thank you for your fast replays!


to be honest I'm just copying now, I understand what it should do. But I have a lot of trouble with how to properly use expressoins  . I still get the same error after using the dynamic property 'body'.

replace(outputs('(I)_Get_files_(properties_only)_-_Internal_workspace')?['/teams/Zuidplaspolderfase5/06 Werkdocumenten}'],'/teams/Zuidplaspolderfase5/Actuele stukken omgeving','')

So close, but so far away..., could you give some inside how to properly use the expression in this case?

hi @JohnAageAnderse 


I assume that I am so far off that it is no longer worth responding haha😅. but thanks anyways for your effort so far.

Helpful resources


Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Results posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (4,361)