Below is my flow and it is failing at the "Get a row" step because the key value is dynamic and not static. It doesn't recognize my Key Value which I'm dynamically adding to the table anytime "Add a row into a table" from the previous is run.
Below is what I'm trying to accomplish.
Forward email received in a shared mail box to individual recipients whose email address are saved in another database
Step 1. When mail new email arrives
Step 2: Add a row into a table ==> I created a excel spreadsheet with those column. The "To" field shows as 12345@domain.com. So I used the 'split' function to strip the 12345 from the rest of the email and save that in the 'eeid' column. The 12345 is unique employee number that can be cross reference in another database to find the employee's actual email address.
Step3 : Run Script ==> - I run a office script which is a recorded XLOOKUP to query another worksheet where the user 12345 has their email address saved
Step 4: Get a row ==> Here I'm trying to get the row from my table but it keeps failing because of key value not being static. As you can see from my flow, my key value is set as "id" . I use the xlookup from the previous step to populate a random number into this column.
The issue is that I cannot add a static key value to the table in advance because then the "Add a row" from the 2nd step would would fail.
See error below