Skip to main content

Notifications

Community site session details

Community site session details

Session Id : caT6q9oOQfXJo4hxERP3Pf
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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard
Loading started