Skip to main content

Notifications

Community site session details

Community site session details

Session Id : hJ6XmSYbXlIjz0WmcUkfSW
Power Automate - Building Flows
Unanswered

copy file from source to target for email attachments

Like (0) ShareShare
ReportReport
Posted on 11 Nov 2024 20:33:39 by 2,245
when a new email arrives, it gets copied in to temporary document library further i have created a flow which will copy file from temporary document library to another document library it has some folder path structure in the another document library. but requirement is when a same file name exists in temporary document library im checking in flow1 that it should be appended with timestamp where the file name has some modifications .Initially file will be stored with the same file name but if there are some modifications then it appends with timestamp when getting stored but if its getting moved to another document library then issues are found so what im saying is that i also need to copy files from temporary document library to another document library in flow2  so, when i edit few columns in temporary doc library for the folder path details variables as per flow2 then it gets copied to another document library.so i need help in checking in the flow2 how to check if  file name test1 got moved to another document library, again if test1 file is getting stored in temporary doc lib for already copied file name then how do i check for condition for same file name and then append time stamp while copying into another document library.
 
flow2
 
Trigger conditions: @and(not(equals(triggerOutputs()?['body/Country'], null)),not(equals(triggerOutputs()?['body/ClientName'], null)),not(equals(triggerOutputs()?['body/Project'], null)))
 
 
 
Document Library details:
 
 
 
 
 
 
 
Flow1
 
 
 
length(outputs('Get_files2')?['body/value'])
 
 
 
concat(split(outputs('Get_Attachment_(V2)_2')?['body/name'],'.')?[0],'_',body('Convert_time_zone'),'.',split(outputs('Get_Attachment_(V2)_2')?['body/name'],'.')?[1])
 
Document library structure
 
 
 

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
David_MA Profile Picture

David_MA 135 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 125

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 120 Super User 2025 Season 1

Overall leaderboard
Loading started