Ideally a single generic file for similar actions are preferred rather than individual pipelines per files assuming all you need to do is follow the same flow of actions for every file.
Then please follow the below approach :
- Create a single pipeline scheduled for 4 times a day
Flow within the pipeline :
- check the execution time, if it matches the schedule of 4 times , only append the last 2 excel file names as an array else include all 4 files
- pass that variable as an input for for each activity for iterations
- within foreach, orchestrate your flow
- In case of copy activity, your source dataset can be parameterized within the itertaion item() file name and in your mapping section you can have dynamic mapping.
- now for sink and dynamic mapping you need to have a configuration mapping somewhere that maps your excel file name to the corresponding sink name and mapping