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
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.
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.