I am quite new in adf and I have the following condition. I have a source and a destination. I want to build a logic where if file is prent in target it should not copy the file from source else it should copy the source file. The source and sink are different so with two getmetadata I am trying to get the files with childite. With a set variable activity I am passing the output of get metadatas for comparison. I am failing at the logic stage. Please let me know if any other better approach is possible
Logic:If file is present in destination it should not copy file from source else it should copy
CodePudding user response:
You can use Filter activity
In items : @activity('files from source').output.childItems Conditions: @not(contains(activity('files from target').output.childItems,item()))
similar thread: ADF-how to compare two get metadata activity results and skip if the same name exists