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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / files getting copied o...
Power Automate
Answered

files getting copied outside folder in the document library

(0) ShareShare
ReportReport
Posted on by 2,249
 
Files are getting stored outside the folder for the first time and for the same file its appending timestamp but its getting stored inside the folder properly.but when this flow runs for new file name its only getting created outside but for same file name second time its appending timestamp and creating inside the folder structure
 
KIndly suggest
 
 
 
 
Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,482 Most Valuable Professional on at
    As you see there is a FilePath problem, the easiest solution would be to create the filePaths example below: 
     
     
     
    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!
     
    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.
     
     
  • Veblitz Profile Picture
    2,249 on at
    im creating folder path dynamically ,its not hard coded.using creating folder path action
  • CFernandes Profile Picture
    8,482 Most Valuable Professional on at
    Which Variable you need? Let me know? 
  • Veblitz Profile Picture
    2,249 on at
    expected output document library structure(dynamically)
    MT India/year/month/India/clientname/project/file.docx
     
     
     
  • CFernandes Profile Picture
    8,482 Most Valuable Professional on at
    Do you want to get the Date and Year with reference to columns? Created or will current Date be OK?
     
     
  • Verified answer
    CFernandes Profile Picture
    8,482 Most Valuable Professional on at
    I am asking because it you just need to get the Current Month and Year its eary
     
    Year
     
    formatDateTime(utcNow(), 'yyyy')
     
     
    Month
     
    formatDateTime(utcNow(), 'MM')

     
    Add a Compose action as shown in the screenshot below, and include other variables returned from SharePoint, such as Project Name, Country, and File Name with Extension, which should be the output of the Get File Properties action.
     
    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!
     
    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 67

#2
David_MA Profile Picture

David_MA 64 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 39 Most Valuable Professional

Last 30 days Overall leaderboard