# Get the last unread email

**URL:** <https://forum.electroneek.com/t/get-the-last-unread-email/2099>\
**Category:** RPA Automation\
**Tags:** email\
**Created:** [January 17, 2023, 11:24am UTC](https://forum.electroneek.com/t/get-the-last-unread-email/2099 "2023-01-17T11:24:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adrian\_Poaca](https://forum.electroneek.com/user_avatar/forum.electroneek.com/adrian_poaca/32/826_2.png) [@Adrian\_Poaca](https://forum.electroneek.com/u/Adrian_Poaca)\
**Post date:** [January 17, 2023, 11:24am UTC](https://forum.electroneek.com/t/get-the-last-unread-email/2099/1 "2023-01-17T11:24:07Z")

</div>

Hello, I wanted to ask if there is a way to get last unread email? Let’s assume that in the morning I have 2 unread emails, after I am done processing the latest email, I still have an unread email that is older, any way to get that email?

---

<div class="post-metadata">

**Author:** ![Renan.Mancilha](https://forum.electroneek.com/user_avatar/forum.electroneek.com/renan.mancilha/32/375_2.png) [@Renan.Mancilha](https://forum.electroneek.com/u/Renan.Mancilha)\
**Post date:** [January 17, 2023, 6:49pm UTC](https://forum.electroneek.com/t/get-the-last-unread-email/2099/2 "2023-01-17T18:49:26Z")

</div>

Hello @Adrian_Poaca,

When working with the Read Email activity, it is possible to setup the activity for bringing only Unread emails:

![image](https://forum.electroneek.com/uploads/default/original/2X/f/fb847de69e061ca560d6deefaa9a421f7b365c0d.png)

In this way you will have the list of emails on the JSON saved in the variable. So now you are able to choose which email you wanna work with, and also setup to mark it as read after processing if you want.

You can find more information regarding this activity in this article:

> **[Read emails](https://help.electroneek.com/hc/en-us/articles/360020254478-Read-emails)**
>
> To help keep users' accounts secure, starting May 30, 2022, ​​Google will no longer support the use of third-party apps or devices which ask you to sign in to your Google Account using only your us...

---

<div class="post-metadata">

**Author:** ![Mabwa\_Neek](https://forum.electroneek.com/user_avatar/forum.electroneek.com/mabwa_neek/32/403_2.png) [@Mabwa\_Neek](https://forum.electroneek.com/u/Mabwa_Neek)\
**Post date:** [January 19, 2023, 4:33pm UTC](https://forum.electroneek.com/t/get-the-last-unread-email/2099/3 "2023-01-19T16:33:43Z")

</div>

Hello @Adrian_Poaca, We would like to understand if the solution we provided worked for you. If it did, please mark this post as a solution.
