Like How do i detect unread emails but avoid reprocessing them after extracting PDF data??( give me exact code)
Thanks !!!
Hi @Aarya_singh
You can use this approach To process email
-
Read already-processed message IDs from a text file
-
Get unread emails from Outlook
-
Check if message ID is already processed
-
If not
-
Process PDF
-
Save/Move file
-
Add message ID to the processed file
-
Mark email as read
-
-
Next run → bot skips old ones
there is no specific code needed
get email activity has two properties
- Read only unread emails
- Mark item as read
first will get only new items
second property will mark the item as read once it is read
cheers
If processedList.Contains(mail.Headers(“Message-Id”))Then
Countinue For
End If
Store the message-id
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.