There is an excel with a few columns. However, columns of interest are Column A and H only.
A new excel needs to be created by splitting/extracting the necessary data from column H of the source file to various new columns.
The data (Columns A and H) in source_file
ID | Description |
---|---|
123 | Access has been Approved for LAST_NAME, FIRST_NAME (userID) EMAIL_id: Application: XYZ Role: ROLE_1 Envir: PROD Attributes: ONE TWO THREE PERCENT CAPACITY 100 SHARED RESOURCE YES RESOURCE POSITION ROLE RP1 Business Reason: Some reason. Some other name Data Owner Other role Primary not required Primary |
456 | Access has been Approved for LAST_NAME2, FIRST_NAME2 (userID2) EMAIL2_id: Application: XYZ2 Role: ROLE_2 Envir: PROD Attributes: FOUR FIVE SIX PERCENT CAPACITY 80 SHARED RESOURCE NO RESOURCE POSITION ROLE RP2 Business Reason: Some reason. Some other name Data Owner Other role Primary not required Primary |
and the format in which the data is required as
ID | Network ID | Security Role | Capacity | Resource Position Role | Shared | Name | |
---|---|---|---|---|---|---|---|
123 | EMAIL_id | userID | ROLE_1 | 100 | RP1 | YES | LAST_NAME, FIRST_NAME |
456 | EMAIL2_id | userID2 | ROLE_2 | 80 | RP2 | NO | LAST_NAME2, FIRST_NAME2 |
I’ve tried to do something but it does not seem to be a correct approach.
- Used Read Range Activity to read all the contents of source file.
- Filter Data Table to get the 1st and 8th column. Store the resultant to a datatable - filtered_table
- Assign activity → operation_table = filtered_table.Clone
- ForEach Row in filtered_table
a) dtRow = operation_table.NewRow
b) name = Split(row(2).toString, " ")(0) – Is this correct?
c) Email…all other columns mentioned above… How do I split them?
d)
e)
f)
g) Add Data Row – dtRow to operation_table - Write to excel