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