Hi community,
I have two file below whereby one is orginal excel file and one is new data and would like to combine both data as below

The orignal file name is " XYX" while Output also having the same file name " XYX".
The output of excel file will have the same file name as per original data. If there is new data found for the company code , then replacing the original data.
I have two struggle that i dont know how to solve it:
A. How to build the workflow so that the original file will not be affected until it has finished run and render the output fiel " XYX" as the file name for original file and output file is the same.
B. Secondly, how to incorporate the function so that if there is no original file exist yet then we just run the new data file and render it to the output file
Thank you in advance