Activity explanation
Input:
DataTable: insert the relevant dt.
Lookup Value: What you are expecting to find.
Lookup Column - the column you expect to find the value.
Insert the relevant value of the 3 options.
Target Column - This is the column with the value you want to return (assuming you find a result in the Lookup Column). This column could the same as Lookup Column or any other column in the dt.
Output has two scenarios:
No Match found:
CellValue will return “”
RowIndex will return: -1
Match found:
CellValue: the value of the row.
RowIndex: the dt row index.
Below is my understanding of your example in the 1st picture:
Within DT_employeeReport, you are looking up the “Request Submitter” (from TI)
You are looking up the column: “Empl #” but returning the value in “Employee Email”
I’ve checked the DT in debug, and of course the dt.select expression works fine which proves the value is valid and the datatable has the desired data.
The Trim happens on the result of the .ToString - but I tried without it and it still doesn’t work. I verified that there are no extra spaces on the values, but I always Trim things just to be sure.