Hello community,
I have the below sample data in my worklfow. I am trying to pick the element to start the iteration process from will depend on the the data from Table 2.
Before, I start. I would like to split data in Next Assembly column in Table 1 when it might have more than 1 record separated by a ';'. The expected output is in Table 1 V2.
I need to either join the data from Table 1 and Table 2 on Part Number and then Union to bring all the data together from Table 1 (Left).
Table 1
| Part Number | Parent Part Number |
| A1001001 | |
| B1001001 | A1001001 |
| C1001001A | B1001001 |
| D1001001ZA | C1001001A |
| N90001009B | Z90001009 |
| N5005010A | N90001009B |
| 1EA001100A | N5005010A |
| 1EA801117F | |
| WHT009011 | 1EA9564321 |
| WHT009011 | 1EA501732A |
| WHT009011 | 1EA801117M;1EA801117F |
Table 1 V2
| Part Number | Parent Part Number |
| A1001001 | |
| B1001001 | A1001001 |
| C1001001A | B1001001 |
| D1001001ZA | C1001001A |
| N90001009B | Z90001009 |
| N5005010A | N90001009B |
| 1EA001100A | N5005010A |
| 1EA801117F | |
| WHT009011 | 1EA9564321 |
| WHT009011 | 1EA501732A |
| WHT009011 | 1EA801117M |
| WHT009011 | 1EA801117F |
Table 2
| Part Number |
| 1EA001100A |
| WHT009011 |
| D1001001ZA |
Joined Table
| Part Number | Parent Part Number | Right_Part Number |
| WHT009011 | 1EA9564321 | WHT009011 |
| WHT009011 | 1EA501732A | WHT009011 |
| WHT009011 | 1EA801117M;1EA801117F | WHT009011 |
| D1001001ZA | C1001001A | D1001001ZA |
| 1EA001100A | N5005010A | 1EA001100A |
| B1001001 | A1001001 | |
| A1001001 | | |
| N5005010A | N90001009B | |
| 1EA801117F | | |
| C1001001A | B1001001 | |
| N90001009B | Z90001009 | |
My objective is to consider the joined data and then use one record from Right_Part Number. For example, 1EA001100A will be considered and then I need to find a match in Part Number column. If I find a match, I need to check if Next Assembly is populated or not. If populated, I need to find that number again in that Part Number column and so on until there is no match found or the Next Assembly is empty.
So in this scenario, considering 1EA001100A the resultant part I need to find would be Z90001009. After finding the part, I need to store this part alongside the part I started the search with.
| Part Number Found | Origin Part Number |
| Z90001009 | 1EA001100A |
| 1EA801117F | WHT009011 |
| A1001001 | D1001001ZA |
Can you please let me know if this is possible and if someone could guide me on how to start of the workflow?
I am bad with Iterative Macros and if this needs one, can you point me to some examples?
Thank you