Hi All,
I need help with below data sets. I want to standardize various clients file. I need only 3 columns(Unique Number, Amount and Date) to upload client data in application.
Step1: I'm downloading all the files based on input emaildomain and subject from email. This is working fine for me.
Step2: I want to extract 3 columns (Unique Number, Amount and Date) and save the file in same folder. Since each client has different schema. How can I create macro which will process all the downloaded files and create standard upload format file for each client. Sample data set given below. Sometimes I get extra rows which contain totals and some calculation in bottom. I want to remove such extra rows.
Note: Unique Number, Amount and Date mandatory column names changes for each clients.
Input to python block for email download:
| ClientName | EmailDomain | Subject | Password | AwardDate | ContributionDate | Month | DownloadPath |
| Client A | @microsoft.com | Contributions | abc23 | 26-Jun-2023 | 26-Jun-2023 | May | C:\\Users\\abc\\OneDrive - Link Group\\Automation\\ |
| Client B | @alteryx.com | Client B Purchase | !abc22 | 26-Jun-2023 | 26-Jun-2023 | May | C:\\Users\\abc\\OneDrive - Link Group\\Automation\\ |
Data Set: Client A
| Unique Number | Surname | Forename | Employee Number | Contribution Amount | Deduction Date |
| AA1233333 | Kyle | M | 1 | 10 | 30/11/2022 |
| BA3466666 | Patel | S | 2 | 15 | 30/11/2022 |
| JG6789654 | Singh | Mike | 5 | 40 | 30/11/2022 |
Data Set : Client B
| Employee | Employee Summary: Unique Number | First name | Surname | Payroll Number | Amount | Contribution Date |
| A B Will | AV321211 | A | Will | 1 | 15 | 2023-01-31 00:00:00 |
| A J Brown | AY322556 | Brown | A | 2 | 30 | 2023-01-31 00:00:00 |
| A K Carr | BB166534 | A | Carr | 3 | 50 | 2023-01-31 00:00:00 |