For each loop , Object references not set to an instance of an object


Hi i getting this error when i try to run this process.
I want to retrieve email with a specific subject + received D -1 then from those filtered email i want to created a list of different Vessel name and store those filtered email according to the specific vessel name. How to i solve this problem ?

Hi, Could you please make sure your for each activity type of argument is System.Net.Mail.Mailmessage

hi it already set to System.Net.Mail.Mailmessage

are you able to get the email counts after reading the get outlook mail message activity

Hey @xiangyun.koh

Initialize the List variable, after Get Outlook mail Message.

For Example List of String can be Initialize in Assign Activity:

myList = New List(Of String())

Regards,
Ajay Mishra

@xiangyun.koh,

Use For Each Email instead of For Each.

Thanks,
Ashok :slight_smile: