Need help with Lookup

Hello, I require help with my workflow.

I need the UiPath to go to my email inbox and for each sender’s email, the UiPath will then lookup the master list (ExcelAllCases.Sheet1) for the sender’s email and i want it to extract the whole row of data. Finally, I want it to copy and write the extracted info into a new sheet (ExcelAllCases.Sheet2).

Hi @mnurhaikal ,

can i get more info about your flow, now are you facing any error, if yes please share error

@mnurhaikal

I dont see you assigning a value to dt_output…also instead of lookup as you need whole row…use a filter datatable and write the output of it to a different sheet/file

cheers

1 Like

This was the error. I kept getting “Write Range Workbook: Object reference not set to an instance of an object.”

This are the activity properties:


This is the example excel sheet:

So if the sender email address is (“b@gmail.com”), i want UiPath to go to MasterList which is “Sheet1”, lookup for email address (“b@gmail.com”) and copy the (“Case ID, Contact Name & Case Subject”) on to “Sheet2”.

Thank you!

@mnurhaikal

cellvalue is not a datatable…that is the issue…and as per error it is clear the dt_output is emtpy as mentioned…

better as mentioned above use filter datatable instead of lookup

cheers

Thank you for the advice! Filter datatable activity works! Thank you for the help sir!

1 Like

I have a follow up issue. Now the filter activity only returns one row of data when I have 13 emails in the folder. It did not read and return the other rows of data.

@mnurhaikal

so 13 rows have same email?

if so you would get 13 rows ideally…if 13 have differnt emails as per your initial requiremnet each time in loop it matches you need new one…if you need all loop values in single sheet then use merge datatable in loop after filter and then after loop write all data at once

cheers

The 13 emails have different email address, subject and body.

Will the above still work the same?

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.