Step 1: Drag and drop a ÔÇ£ReadÔÇØ activity from the ÔÇ£EmailAutomationÔÇØ feature.

a

Declare a variable type as a list<Mailitem>, by following the below steps.

Step 2: Click on the ÔÇ£Browse for typesÔÇØ in variable type.

2

Step 3: Type system.collections.generic.list in ÔÇ£TypeNameÔÇØ field

3

Step 4: Select the list<t> and click on the System.collections.Generic.list drop-down.

4

Step 5: Click on the Browse for types and type Mailitem in Type name field.

Step 6: Select microsoftofficeinterop mailitem if your outlook version is 2016 and above(including office365), or else select mailitem in SmartRPAActivities.

6

Step 7: Click ok, the declared variable will be available in the variable menu.

10

Step 8: Once the variable is created for list<mailitem>, initialize a new mailitem by declaring the variable. Follow the below steps.

Step 9: Click on the ÔÇ£Browse for typesÔÇØ in variable type

6

Step 9: Click on the Browse for types and type Mailitem in Type name field.

11

Step 10: Select microsofofficeintop mailitem if your outlook version is 2016 and above else select SmartRPAActivities mailitem

Step 11: Click Ok, the declared variable will be available in the variable menu.