Skip to main content

Notifications

Power Automate - Building Flows
Answered

files getting copied outside folder in the document library

Posted on by 2,059
 
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
 
 
 
 
  • Verified answer
    CFernandes Profile Picture
    CFernandes 8,025 on at
    files getting copied outside folder in the document library
    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.
  • CFernandes Profile Picture
    CFernandes 8,025 on at
    files getting copied outside folder in the document library
    Do you want to get the Date and Year with reference to columns? Created or will current Date be OK?
     
     
  • Veblitz Profile Picture
    Veblitz 2,059 on at
    files getting copied outside folder in the document library
    expected output document library structure(dynamically)
    MT India/year/month/India/clientname/project/file.docx
     
     
     
  • CFernandes Profile Picture
    CFernandes 8,025 on at
    files getting copied outside folder in the document library
    Which Variable you need? Let me know? 
  • Veblitz Profile Picture
    Veblitz 2,059 on at
    files getting copied outside folder in the document library
    im creating folder path dynamically ,its not hard coded.using creating folder path action
  • CFernandes Profile Picture
    CFernandes 8,025 on at
    files getting copied outside folder in the document library
    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.
     
     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,591

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,090

Leaderboard