I am building an automation that deals with emails being dispatched to a queue to be processed later by another robot.
The emails are Google gmail messages and to the queue I want to upload the unique IDs for these emails because I want the robot to grab these emails at a later time, save the attachments and move the emails to another label.
I tried uploding the queue items with mailMessage.MessageId but when I tried retrieving the gmail emails by these message ids I got 0 results.
I also tried with mailMessage.Headers(“Message-ID”), mailMessage.Headers(“ID”), mailMessage.Headers(“UID”) and mailMessage.Headers(“Uid”) but these didn’t work, as they returned the email id as null.
Does anybody know how to get the unique id of a gmail message?