I want to extract data from mails from GMail, no issue around the fact to extract body subject etc …
But I want to put the reply of an exchange of e-mail in the same line of an excel. In order to do that I have to identify that my mail is a reply to one of the e-mail that I have already report in my excel.
I consider that the subject of the e-mail is not a solid argument and I want to base my identification via the ID of each mail.
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.
The third option requires to use API for all the sequence for gmail emails gathering.
You would need to send API request to get the emails and then loop through the JSON to get the correct data. Unfortunately, it will require some more effort to authenticate with google account and find the correct parameters. I have not used it much but if there will no other option, I will try to assist you
I mean that I need to get the ID of the email but I need too to get the id of the previous mail in a same exchange of email.
If I receive a mail, that I answer and that i receive one more mail in this exchange.When I will receive the last mail, I need to get the ID of last mail but the ID of the first mail too.
The references in my screenshot.
I am not sure if I understood correctly the case. Is it possible to send the components or kind of logic map? Otherwise we can think about short call to understand the issue