Get ID and references from a Gmail e-mail

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 the UiPathEventObjectId project argument if an Integration Service trigger is used.
  1. 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

  2. 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 :wink: If so, please mark as the solution :slight_smile:

Regards,
Kamil

1 Like