Hi @Adrien_Poude,
Could you please let me know what activity do you use to get Gmail emails?
I have few solutions to check for you:
-
- The value for Email ID can can be retrieved from the
MailMessage.Headers("Uid")
object or from theUiPathEventObjectId
project argument if an Integration Service trigger is used.
- The value for Email ID can can be retrieved from the
-
Check this tutorial, it should answer your question as well:
UiPath Tutorial 09 - Read Email in UiPath | Filter Email in UiPath | Get IMAP Mail Messages Activity - YouTube -
API:
You need to do a list as described here first (it has search semantics in the q parameter if you are not interested in all messages):
This returns a list of messages which look like this:
The message id is the id field (“id”: string)
Let me know if that works If so, please mark as the solution
Regards,
Kamil