Having Issues with Get Email by ID

I have tried to enter the email ID which I am interested in what with but i kept on getting error message. Get Email By Id: Google.Apis.Requests.RequestError
Invalid id value [400]
Errors [
Message[Invalid id value] Location[ - ] Reason[invalidArgument] Domain[global]
]

@Martins_Micheal

Which id are you using?

Cheers

There are two IDs in an Office365Message: MessageId and InternetMessageId. I don’t remember which you have to use, but I know one works and one doesn’t.

@Martins_Micheal,

Get the MessageId of the email like this. You can use some other activities also which will give you a MailMessage object.

Once you have this Message Id pass it to Get Email by ID to get that particular email by it’s message id.

Output:

Senders email[quote=“Anil_G, post:2, topic:2828594, full:true”]
@Martins_Micheal

Which id are you using?

Cheers
[/quote]

strong text sender’s email

@Martins_Micheal

Email ID is not what you need to use but the messageID…this you can get the retrieving the mail

if you need to use email id then you need to use filter proeprty

cheers

1 Like

Hey @Martins_Micheal,

Both properties should work. I’ve tested them and they work just fine.

  1. InternetMessageId, is a message identifier common to all mail server. MimeMessage.MessageId Property
  2. MessageId, is the one generated by Gmail.

Unless you have a use case to move emails across servers and applications, use MessageId.

means that the ID you’re passing to the “Get Email by ID” activity is not valid. In the Gmail API, the email ID is not the email address — it’s a unique message ID assigned by Gmail